Skip to content

Commit e1eaf42

Browse files
committed
Wait for a button to be pressed and released after showing version information.
1 parent afe9a7c commit e1eaf42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/nds/gui.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,9 @@ u32 menu(u16 *screen, bool8 FirstInvocation)
26422642
draw_string_vcenter(down_screen_addr, MESSAGE_BOX_TEXT_X, MESSAGE_BOX_TEXT_Y, MESSAGE_BOX_TEXT_SX, COLOR_MSSG, line_buffer);
26432643
ds2_flipScreen(DOWN_SCREEN, DOWN_SCREEN_UPDATE_METHOD);
26442644

2645-
wait_Anykey_press(0);
2645+
wait_Allkey_release(0); // invoked from the menu
2646+
wait_Anykey_press(0); // wait until the user presses something
2647+
wait_Allkey_release(0); // don't give that button to the menu
26462648
}
26472649

26482650
void language_set()

0 commit comments

Comments
 (0)