1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

split off get_actions from handleInput

This commit is contained in:
Zeno Rogue 2022-05-01 16:43:30 +02:00
parent c4d4bfa517
commit 5a13f629d1

View File

@ -751,10 +751,7 @@ EX void initConfig() {
#endif
}
EX void handleInput(int delta) {
#if CAP_SDL
double d = delta / 500.;
EX void get_actions() {
const Uint8 *keystate = SDL12_GetKeyState(NULL);
for(int i=0; i<NUMACT; i++)
@ -790,7 +787,15 @@ EX void handleInput(int delta) {
}
}
#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;
double panx =