mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-25 14:43:01 +00:00
new hook, hooks_handleInput
This commit is contained in:
parent
986e9833c7
commit
47c5ec8d4a
@ -870,11 +870,14 @@ EX void get_actions(config& scfg) {
|
||||
static constexpr int pantable = 3;
|
||||
#endif
|
||||
|
||||
EX purehookset hooks_handleInput;
|
||||
|
||||
EX void handleInput(int delta, config &scfg) {
|
||||
#if CAP_SDL
|
||||
double d = delta / 500.;
|
||||
|
||||
get_actions(scfg);
|
||||
callhooks(hooks_handleInput);
|
||||
|
||||
const sdl_keystate_type *keystate = SDL12_GetKeyState(NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user