mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-04 01:12:23 +00:00
split off get_actions from handleInput
This commit is contained in:
13
multi.cpp
13
multi.cpp
@@ -751,10 +751,7 @@ EX void initConfig() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void handleInput(int delta) {
|
EX void get_actions() {
|
||||||
#if CAP_SDL
|
|
||||||
double d = delta / 500.;
|
|
||||||
|
|
||||||
const Uint8 *keystate = SDL12_GetKeyState(NULL);
|
const Uint8 *keystate = SDL12_GetKeyState(NULL);
|
||||||
|
|
||||||
for(int i=0; i<NUMACT; i++)
|
for(int i=0; i<NUMACT; i++)
|
||||||
@@ -790,7 +787,15 @@ EX void handleInput(int delta) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
EX void handleInput(int delta) {
|
||||||
|
#if CAP_SDL
|
||||||
|
double d = delta / 500.;
|
||||||
|
|
||||||
|
get_actions();
|
||||||
|
|
||||||
|
const Uint8 *keystate = SDL12_GetKeyState(NULL);
|
||||||
if(keystate[SDLK_LCTRL] || keystate[SDLK_RCTRL]) d /= 5;
|
if(keystate[SDLK_LCTRL] || keystate[SDLK_RCTRL]) d /= 5;
|
||||||
|
|
||||||
double panx =
|
double panx =
|
||||||
|
Reference in New Issue
Block a user