mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 13:14:30 +00:00
tour:: dialog::key_actions taken into account
This commit is contained in:
1 parent
2a3f4b9d04
commit
ceb47c843a
1 file changed
+4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user