mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-29 18:34: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;
|
if(!(cmode & sm::DOTOUR)) return false;
|
||||||
bool inhelp = cmode & sm::HELP;
|
bool inhelp = cmode & sm::HELP;
|
||||||
flagtype flags = slides[currentslide].flags;
|
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)))
|
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP)))
|
||||||
return next_slide();
|
return next_slide();
|
||||||
if(sym == SDLK_BACKSPACE) {
|
if(sym == SDLK_BACKSPACE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user