Skip to content

Commit

Permalink
Added ZL/ZR as additional tile skip buttons. (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicCurator authored Oct 23, 2023
1 parent e978400 commit 93b4f2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nx_main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -249,8 +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_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;
Expand Down

0 comments on commit 93b4f2f

Please sign in to comment.