1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-25 05:59:43 +00:00

CLI command -keys

This commit is contained in:
Zeno Rogue
2022-04-26 13:27:09 +02:00
parent 64ece33a97
commit a788b9e540
2 changed files with 26 additions and 1 deletions

View File

@@ -940,8 +940,9 @@ EX void mainloopiter() {
for(auto d: dialog::key_queue) {
println(hlog, "handling key ", d);
handlekey(d, d);
dialog::key_queue.erase(dialog::key_queue.begin());
break;
}
dialog::key_queue.clear();
while(SDL_PollEvent(&ev)) handle_event(ev);
fix_mouseh();