mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-12-03 19:55:17 +00:00
new hook, hooks_handleInput
This commit is contained in:
1 parent
986e9833c7
commit
47c5ec8d4a
1 file changed
+3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user