1
0
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:
Zeno Rogue 2024-12-23 10:58:11 +01:00
parent 5fd863c713
commit 4aeaa2e2d5

2
vr.cpp
View File

@ -1634,6 +1634,7 @@ EX void show_vr_quickmenu() {
}
bool vr_keys(int sym, int uni) {
#if !ISMOBILE
if(!(cmode & sm::NORMAL)) return false;
const Uint8 *keystate = SDL12_GetKeyState(NULL);
#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; }
}
return false;
#endif
}
auto hookvr = addHook(vr_quickmenu_extensions, 100, [] {