1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

hooks_control added

This commit is contained in:
Zeno Rogue 2023-08-06 11:47:21 +02:00
parent 92cf27a056
commit 0168e4c7a8

View File

@ -708,6 +708,8 @@ EX bool mouseaiming(bool shmupon) {
/* visualization only -- the HyperRogue movement keys should move the camera */
EX bool game_keys_scroll;
EX purehookset hooks_control;
EX void mainloopiter() {
GLWRAP;
DEBB(DF_GRAPH, ("main loop\n"));
@ -974,6 +976,8 @@ EX void mainloopiter() {
#endif
achievement_pump();
callhooks(hooks_control);
for(auto d: dialog::key_queue) {
println(hlog, "handling key ", d);
handlekey(d, d);