mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Delete keybinding with delete or backspace (#208)
This commit is contained in:
parent
320eaae790
commit
70c4865ba4
1 changed files with 7 additions and 9 deletions
|
@ -1266,16 +1266,14 @@ bool CGameMenuItemKeyList::Event(CGameMenuEvent &event)
|
||||||
pCallback(this);
|
pCallback(this);
|
||||||
Scan();
|
Scan();
|
||||||
return false;
|
return false;
|
||||||
|
case kMenuEventBackSpace:
|
||||||
case kMenuEventDelete:
|
case kMenuEventDelete:
|
||||||
if (keystatus[sc_LeftControl] || keystatus[sc_RightControl])
|
uint8_t oldKey[2];
|
||||||
{
|
oldKey[0] = KeyboardKeys[nFocus][0];
|
||||||
uint8_t oldKey[2];
|
oldKey[1] = KeyboardKeys[nFocus][1];
|
||||||
oldKey[0] = KeyboardKeys[nFocus][0];
|
KeyboardKeys[nFocus][0] = 0;
|
||||||
oldKey[1] = KeyboardKeys[nFocus][1];
|
KeyboardKeys[nFocus][1] = 0;
|
||||||
KeyboardKeys[nFocus][0] = 0;
|
CONFIG_MapKey(nFocus, 0, oldKey[0], 0, oldKey[1]);
|
||||||
KeyboardKeys[nFocus][1] = 0;
|
|
||||||
CONFIG_MapKey(nFocus, 0, oldKey[0], 0, oldKey[1]);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
case kMenuEventScrollUp:
|
case kMenuEventScrollUp:
|
||||||
if (nFocus-nTopDelta > 0)
|
if (nFocus-nTopDelta > 0)
|
||||||
|
|
Loading…
Reference in a new issue