diff --git a/control.cpp b/control.cpp index 5bf246d7..e07e2c01 100644 --- a/control.cpp +++ b/control.cpp @@ -1016,7 +1016,11 @@ EX void mainloopiter() { ld t = (ticks - lastticks) * shiftmul / 1000.; lastticks = ticks; + #if CAP_SDL2 + #define dkey(x) keystate[int(x - 'a' + 4)] && DEFAULTNOR(x - 'a' + 4) + #else #define dkey(x) keystate[int(x)] && DEFAULTNOR(x) + #endif if(dkey('d')) full_rotate_camera(0, -t); if(dkey('a')) full_rotate_camera(0, t);