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:
parent
2a3f4b9d04
commit
ceb47c843a
4
tour.cpp
4
tour.cpp
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user