1
0
Fork 0
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:
fgenesis 2019-03-18 01:07:14 +01:00
parent 520c71fdb7
commit 0abe0f821c
7 changed files with 17 additions and 18 deletions

View file

@ -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;