aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNebuleon Fumika2013-03-30 01:46:56 -0400
committerNebuleon Fumika2013-03-30 01:46:56 -0400
commite1eaf42367ef8eb99642bf3a92a6742e89a407bc (patch)
tree395141032bb5655d1b592a92ba63638eb64a9d4e
parentafe9a7ca264aabd304b9fbebe7a95502142bab00 (diff)
downloadsnesemu-e1eaf42367ef8eb99642bf3a92a6742e89a407bc.tar.gz
snesemu-e1eaf42367ef8eb99642bf3a92a6742e89a407bc.tar.bz2
snesemu-e1eaf42367ef8eb99642bf3a92a6742e89a407bc.zip
Wait for a button to be pressed and released after showing version information.
-rw-r--r--source/nds/gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 727f7ad..ecab0e0 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -2642,7 +2642,9 @@ u32 menu(u16 *screen, bool8 FirstInvocation)
draw_string_vcenter(down_screen_addr, MESSAGE_BOX_TEXT_X, MESSAGE_BOX_TEXT_Y, MESSAGE_BOX_TEXT_SX, COLOR_MSSG, line_buffer);
ds2_flipScreen(DOWN_SCREEN, DOWN_SCREEN_UPDATE_METHOD);
- wait_Anykey_press(0);
+ wait_Allkey_release(0); // invoked from the menu
+ wait_Anykey_press(0); // wait until the user presses something
+ wait_Allkey_release(0); // don't give that button to the menu
}
void language_set()