1
0
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:
Zeno Rogue 2025-06-22 15:52:35 +02:00
parent 986e9833c7
commit 47c5ec8d4a

View File

@ -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);