mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 14:34:34 +00:00
hard-wire Escape key to always trigger ACTION_ESC.
Additional config for more keys/button to trigger the same action is still possible.
This commit is contained in:
parent
520c71fdb7
commit
0abe0f821c
7 changed files with 17 additions and 18 deletions
|
@ -197,6 +197,10 @@ int getStringToInputCode(const std::string& s)
|
|||
k = getInputCodeFromKeyName(s.c_str());
|
||||
}
|
||||
|
||||
// Non-configurable keys
|
||||
if(k == KEY_ESCAPE)
|
||||
return 0;
|
||||
|
||||
if(k < ACTION_BUTTON_ENUM_SIZE)
|
||||
return k;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue