mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
hooks_control added
This commit is contained in:
parent
92cf27a056
commit
0168e4c7a8
@ -708,6 +708,8 @@ EX bool mouseaiming(bool shmupon) {
|
|||||||
/* visualization only -- the HyperRogue movement keys should move the camera */
|
/* visualization only -- the HyperRogue movement keys should move the camera */
|
||||||
EX bool game_keys_scroll;
|
EX bool game_keys_scroll;
|
||||||
|
|
||||||
|
EX purehookset hooks_control;
|
||||||
|
|
||||||
EX void mainloopiter() {
|
EX void mainloopiter() {
|
||||||
GLWRAP;
|
GLWRAP;
|
||||||
DEBB(DF_GRAPH, ("main loop\n"));
|
DEBB(DF_GRAPH, ("main loop\n"));
|
||||||
@ -974,6 +976,8 @@ EX void mainloopiter() {
|
|||||||
#endif
|
#endif
|
||||||
achievement_pump();
|
achievement_pump();
|
||||||
|
|
||||||
|
callhooks(hooks_control);
|
||||||
|
|
||||||
for(auto d: dialog::key_queue) {
|
for(auto d: dialog::key_queue) {
|
||||||
println(hlog, "handling key ", d);
|
println(hlog, "handling key ", d);
|
||||||
handlekey(d, d);
|
handlekey(d, d);
|
||||||
|
Loading…
Reference in New Issue
Block a user