mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
some missing CAP_SDL guards
This commit is contained in:
1 parent
35125c7878
commit
2125e9ee5b
4 files changed
+19
No files matched your search
@@ -997,12 +997,16 @@ EX namespace dialog {
|
||||
EX void handle_actions(int &sym, int &uni) {
|
||||
if(key_actions.count(uni)) {
|
||||
key_actions[uni]();
|
||||
#if CAP_SDL
|
||||
if(uni >= ' ' && uni <= 127) ignore_textinput = true;
|
||||
#endif
|
||||
sym = uni = 0;
|
||||
return;
|
||||
}
|
||||
if(key_actions.count(sym)) {
|
||||
#if CAP_SDL
|
||||
if(sym >= ' ' && sym <= 127) ignore_textinput = true;
|
||||
#endif
|
||||
key_actions[sym]();
|
||||
sym = uni = 0;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user