1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-17 18:59:59 +00:00

moved game_keys_scroll so that it exists on Android

This commit is contained in:
Zeno Rogue 2023-12-30 08:08:33 +01:00
parent 6e3be8a92c
commit f4607b63f4

View File

@ -683,6 +683,9 @@ EX void resize_screen_to(int x, int y);
EX void mainloopiter() { printf("(compiled without SDL -- no action)\n"); quitmainloop = true; } EX void mainloopiter() { printf("(compiled without SDL -- no action)\n"); quitmainloop = true; }
#endif #endif
/* visualization only -- the HyperRogue movement keys should move the camera */
EX bool game_keys_scroll;
#if CAP_SDL #if CAP_SDL
// Warning: a very long function! todo: refactor // Warning: a very long function! todo: refactor
@ -714,9 +717,6 @@ EX bool mouseaiming(bool shmupon) {
(GDIM == 3 && !shmupon) || (rug::rugged && (lctrlclick ^ rug::mouse_control_rug)) || (cmode & sm::MOUSEAIM); (GDIM == 3 && !shmupon) || (rug::rugged && (lctrlclick ^ rug::mouse_control_rug)) || (cmode & sm::MOUSEAIM);
} }
/* visualization only -- the HyperRogue movement keys should move the camera */
EX bool game_keys_scroll;
EX purehookset hooks_control; EX purehookset hooks_control;
EX void mainloopiter() { EX void mainloopiter() {