mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-12-05 20:35:16 +00:00
fixed ijkl scrolling keys in SDL2
This commit is contained in:
1 parent
b756266ebe
commit
6c47ba501b
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user