mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-26 15:12:48 +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;
|
static constexpr int pantable = 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EX purehookset hooks_handleInput;
|
||||||
|
|
||||||
EX void handleInput(int delta, config &scfg) {
|
EX void handleInput(int delta, config &scfg) {
|
||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
double d = delta / 500.;
|
double d = delta / 500.;
|
||||||
|
|
||||||
get_actions(scfg);
|
get_actions(scfg);
|
||||||
|
callhooks(hooks_handleInput);
|
||||||
|
|
||||||
const sdl_keystate_type *keystate = SDL12_GetKeyState(NULL);
|
const sdl_keystate_type *keystate = SDL12_GetKeyState(NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user