mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-15 11:45:48 +00:00
added not-ISMOBILE guards to vr.cpp
This commit is contained in:
parent
5fd863c713
commit
4aeaa2e2d5
2
vr.cpp
2
vr.cpp
@ -1634,6 +1634,7 @@ EX void show_vr_quickmenu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool vr_keys(int sym, int uni) {
|
bool vr_keys(int sym, int uni) {
|
||||||
|
#if !ISMOBILE
|
||||||
if(!(cmode & sm::NORMAL)) return false;
|
if(!(cmode & sm::NORMAL)) return false;
|
||||||
const Uint8 *keystate = SDL12_GetKeyState(NULL);
|
const Uint8 *keystate = SDL12_GetKeyState(NULL);
|
||||||
#if CAP_SDL2
|
#if CAP_SDL2
|
||||||
@ -1647,6 +1648,7 @@ bool vr_keys(int sym, int uni) {
|
|||||||
if(dialog::key_actions.count(uni)) { dialog::key_actions[uni](); return true; }
|
if(dialog::key_actions.count(uni)) { dialog::key_actions[uni](); return true; }
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
auto hookvr = addHook(vr_quickmenu_extensions, 100, [] {
|
auto hookvr = addHook(vr_quickmenu_extensions, 100, [] {
|
||||||
|
Loading…
Reference in New Issue
Block a user