diff --git a/Makefile b/Makefile index 350e2d7..df6058e 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ include $(DEVKITPRO)/libnx/switch_rules #--------------------------------------------------------------------------------- APP_TITLE := untitled APP_AUTHOR := TotalJustice -APP_VERSION := 1.0.1 +APP_VERSION := 1.1.0 # ICON := assets/app_icon.jpg TARGET := untitled @@ -60,7 +60,7 @@ OUT_SHADERS := shaders ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE # basic -C_OPTIMISE := -O3 -DNDEBUG +C_OPTIMISE := -O3 -DNDEBUG # lto C_OPTIMISE += -flto -ffat-lto-objects -fuse-linker-plugin -flto-compression-level=9 -ffunction-sections -fdata-sections -fmerge-all-constants -Wl,--gc-sections diff --git a/src/app.cpp b/src/app.cpp index 0824353..1dfaba1 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -49,7 +49,7 @@ void App::Loop() { } } -void Controller::UpdateButtonHeld(bool& down, bool held, HidNpadButton type) { +void Controller::UpdateButtonHeld(bool& down, bool held) { if (down) { this->step = 50; this->counter = 0; @@ -87,8 +87,8 @@ void App::Poll() { this->controller.LEFT = (down & HidNpadButton_AnyLeft); this->controller.RIGHT = (down & HidNpadButton_AnyRight); - this->controller.UpdateButtonHeld(this->controller.DOWN, (held & HidNpadButton_AnyDown), HidNpadButton_AnyDown); - this->controller.UpdateButtonHeld(this->controller.UP, (held & HidNpadButton_AnyUp), HidNpadButton_AnyUp); + this->controller.UpdateButtonHeld(this->controller.DOWN, held & HidNpadButton_AnyDown); + this->controller.UpdateButtonHeld(this->controller.UP, held & HidNpadButton_AnyUp); #ifndef NDEBUG auto display = [](const char* str, bool key) { diff --git a/src/app.hpp b/src/app.hpp index 6d2bfc2..157d440 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -39,9 +39,8 @@ struct Controller final { static constexpr int MAX_STEP = 250; int step = 50; int counter = 0; - HidNpadButton button_held_type; - void UpdateButtonHeld(bool& down, bool held, HidNpadButton type); + void UpdateButtonHeld(bool& down, bool held); }; struct AppEntry final {