mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-03-26 06:29:43 +00:00
migrated to SDL3
This commit is contained in:
8
vr.cpp
8
vr.cpp
@@ -1636,12 +1636,8 @@ 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
|
||||
if(keystate[SDL_SCANCODE_LALT] || keystate[SDL_SCANCODE_RALT])
|
||||
#else
|
||||
if(keystate[SDLK_LALT] || keystate[SDLK_RALT])
|
||||
#endif
|
||||
const sdl_keystate_type *keystate = SDL12_GetKeyState(NULL);
|
||||
if(keystate[SDL12(SDLK_LALT, SDL_SCANCODE_LALT)] || keystate[SDL12(SDLK_RALT, SDL_SCANCODE_RALT)])
|
||||
{
|
||||
dialog::key_actions.clear();
|
||||
callhooks(vr_quickmenu_extensions);
|
||||
|
||||
Reference in New Issue
Block a user