navigate menus using TAB and TAB+LSHIFT
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2815 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -586,7 +586,7 @@ COMMAND(menuitemkeyinput, ARG_4STR);
|
||||
COMMAND(menuitemcheckbox, ARG_3STR);
|
||||
|
||||
|
||||
bool menukey(int code, bool isdown, int unicode)
|
||||
bool menukey(int code, bool isdown, int unicode, SDLMod mod)
|
||||
{
|
||||
if(!curmenu) return false;
|
||||
int n = curmenu->items.length(), menusel = curmenu->menusel;
|
||||
@@ -617,6 +617,11 @@ bool menukey(int code, bool isdown, int unicode)
|
||||
menusel++;
|
||||
break;
|
||||
|
||||
case SDLK_TAB:
|
||||
if(mod & KMOD_LSHIFT) menusel--;
|
||||
else menusel++;
|
||||
break;
|
||||
|
||||
case SDLK_1:
|
||||
case SDLK_2:
|
||||
case SDLK_3:
|
||||
|
||||
Reference in New Issue
Block a user