From 14affda3373cea53fb99c8b47040e01351e4f1c2 Mon Sep 17 00:00:00 2001 From: CosmicCurator <119771197+CosmicCurator@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:14:42 +0100 Subject: [PATCH 1/2] Added ZL/ZR as additional tile skip buttons. --- nx_main/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nx_main/main.c b/nx_main/main.c index b4b94b6..2728679 100644 --- a/nx_main/main.c +++ b/nx_main/main.c @@ -149,7 +149,7 @@ int main(int argc, char **argv) // Scan the gamepad. This should be done once for each frame padUpdate(&g_pad); padRepeaterUpdate(&g_pad_repeater, padGetButtons(&g_pad) & ( - HidNpadButton_AnyLeft | HidNpadButton_AnyUp | HidNpadButton_AnyRight | HidNpadButton_AnyDown + HidNpadButton_AnyLeft | HidNpadButton_AnyUp | HidNpadButton_AnyRight | HidNpadButton_AnyDown | HidNpadButton_ZL | HidNpadButton_ZR )); if (!error_screen) { @@ -251,6 +251,8 @@ bool menuUpdate(void) { if (down & HidNpadButton_AnyRight) move++; if (down & HidNpadButton_AnyDown) move-=entries_count; if (down & HidNpadButton_AnyUp) move+=entries_count; + if (down & HidNpadButton_ZL) move-=entries_count; + if (down & HidNpadButton_ZR) move+=entries_count; int newEntry = menu->curEntry + move; if (newEntry < 0) newEntry = 0; From f45f1c9a538e6820ad79123912f9e7023d546e09 Mon Sep 17 00:00:00 2001 From: CosmicCurator <119771197+CosmicCurator@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:35:54 +0100 Subject: [PATCH 2/2] Added ZL/ZR as additional tile skip buttons. --- nx_main/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nx_main/main.c b/nx_main/main.c index 2728679..86e8b75 100644 --- a/nx_main/main.c +++ b/nx_main/main.c @@ -249,10 +249,8 @@ bool menuUpdate(void) { if (down & HidNpadButton_AnyLeft) move--; if (down & HidNpadButton_AnyRight) move++; - if (down & HidNpadButton_AnyDown) move-=entries_count; - if (down & HidNpadButton_AnyUp) move+=entries_count; - if (down & HidNpadButton_ZL) move-=entries_count; - if (down & HidNpadButton_ZR) move+=entries_count; + if (down & (HidNpadButton_AnyDown | HidNpadButton_ZL)) move-=entries_count; + if (down & (HidNpadButton_AnyUp | HidNpadButton_ZR)) move+=entries_count; int newEntry = menu->curEntry + move; if (newEntry < 0) newEntry = 0;