1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-28 09:54:52 +00:00

tour:: dialog::key_actions taken into account

This commit is contained in:
Zeno Rogue 2024-12-01 23:20:09 +01:00
parent 2a3f4b9d04
commit ceb47c843a

View File

@ -255,6 +255,10 @@ bool handleKeyTour(int sym, int uni) {
if(!(cmode & sm::DOTOUR)) return false;
bool inhelp = cmode & sm::HELP;
flagtype flags = slides[currentslide].flags;
if(dialog::key_actions.count(sym)) {
dialog::key_actions[sym]();
return true;
}
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP)))
return next_slide();
if(sym == SDLK_BACKSPACE) {