1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-13 06:22:39 +00:00

SDL2 bugfix to shmup and game_keys_scroll

This commit is contained in:
Zeno Rogue
2024-03-24 13:15:58 +01:00
parent c55550de57
commit 0ec4e46bf0
2 changed files with 3 additions and 2 deletions

View File

@@ -957,7 +957,7 @@ EX void mainloopiter() {
}
else sc_ticks = ticks;
if(game_keys_scroll && !shmup::on && (cmode & sm::NORMAL) && !keystate[SDLK_LALT] && !keystate[SDLK_RALT]) {
if(game_keys_scroll && !shmup::on && (cmode & sm::NORMAL) && !keystate[SDL12(SDLK_LALT, SDL_SCANCODE_LALT)] && !keystate[SDL12(SDLK_RALT, SDL_SCANCODE_RALT)]) {
rug::using_rugview urv;
auto& lastticks = sc_ticks2;
ld t = (ticks - lastticks) * shiftmul / 1000.;