mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-25 21:31:40 +00:00
VITA/NX: Fix inaccessible 'Back' button in controls menu
This commit is contained in:
parent
d9e841bd76
commit
58421a45fe
1 changed files with 12 additions and 8 deletions
|
@ -3176,26 +3176,30 @@ void M_Keys_Key (int k)
|
||||||
S_LocalSound ("sounds/menu/navigate.wav");
|
S_LocalSound ("sounds/menu/navigate.wav");
|
||||||
keys_cursor--;
|
keys_cursor--;
|
||||||
if (keys_cursor < 0)
|
if (keys_cursor < 0)
|
||||||
keys_cursor = NUMCOMMANDS-1;
|
keys_cursor = NUMCOMMANDS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case K_DOWNARROW:
|
case K_DOWNARROW:
|
||||||
case K_RIGHTARROW:
|
case K_RIGHTARROW:
|
||||||
S_LocalSound ("sounds/menu/navigate.wav");
|
S_LocalSound ("sounds/menu/navigate.wav");
|
||||||
keys_cursor++;
|
keys_cursor++;
|
||||||
if (keys_cursor >= (int)NUMCOMMANDS)
|
if (keys_cursor >= (int)NUMCOMMANDS + 1)
|
||||||
keys_cursor = 0;
|
keys_cursor = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case K_ENTER: // go into bind mode
|
case K_ENTER: // go into bind mode
|
||||||
case K_KP_ENTER:
|
case K_KP_ENTER:
|
||||||
case K_ABUTTON:
|
case K_ABUTTON:
|
||||||
M_FindKeysForCommand (bindnames[keys_cursor][0], keys);
|
if (keys_cursor == NUMCOMMANDS)
|
||||||
S_LocalSound ("sounds/menu/enter.wav");
|
M_Menu_Options_f();
|
||||||
if (keys[2] != -1)
|
else {
|
||||||
M_UnbindCommand (bindnames[keys_cursor][0]);
|
M_FindKeysForCommand (bindnames[keys_cursor][0], keys);
|
||||||
bind_grab = true;
|
S_LocalSound ("sounds/menu/enter.wav");
|
||||||
IN_Activate(); // activate to allow mouse key binding
|
if (keys[2] != -1)
|
||||||
|
M_UnbindCommand (bindnames[keys_cursor][0]);
|
||||||
|
bind_grab = true;
|
||||||
|
IN_Activate(); // activate to allow mouse key binding
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case K_BACKSPACE: // delete bindings
|
case K_BACKSPACE: // delete bindings
|
||||||
|
|
Loading…
Reference in a new issue