From 52b11e6c1cc54962c195cf97e4e6b71b635a9784 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Thu, 14 Feb 2013 16:24:42 -0500 Subject: Adjust hotkeys to allow using the directional pad for them. Suggested usage is L+Up, R+Up, etc. --- source/nds/draw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/nds/draw.c') diff --git a/source/nds/draw.c b/source/nds/draw.c index 3eab510..19720e5 100644 --- a/source/nds/draw.c +++ b/source/nds/draw.c @@ -898,12 +898,11 @@ u32 draw_hotkey_dialog(enum SCREEN_ID screen, u32 sy, char *clear, char *cancel) // Now, while there are keys pressed, keep a tally of keys that have // been pressed. (IGNORE TOUCH AND LID! Otherwise, closing the lid or - // touching to get to the menu will do stuff the user doesn't expect. - // Also ignore the direction pad because every game uses it.) + // touching to get to the menu will do stuff the user doesn't expect.) u32 TotalKeys = 0; do { - TotalKeys |= inputdata.key & ~(KEY_TOUCH | KEY_LID | KEY_UP | KEY_DOWN | KEY_LEFT | KEY_RIGHT); + TotalKeys |= inputdata.key & ~(KEY_TOUCH | KEY_LID); // If there's a touch on either button, turn it into a // clear (A) or cancel (B) request. if (inputdata.key & KEY_TOUCH) -- cgit v1.2.3