1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 20:07:58 +00:00

tour mode now reacts to pageup/down

This commit is contained in:
Zeno Rogue
2025-08-17 03:09:19 +02:00
parent af0a546114
commit fff5ed37ab
2 changed files with 6 additions and 5 deletions

View File

@@ -274,9 +274,10 @@ bool handleKeyTour(int sym, int uni) {
dialog::key_actions[sym]();
return true;
}
if(sym == SDLK_PAGEDOWN) return next_slide();
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP)))
return next_slide();
if(sym == SDLK_BACKSPACE) {
if(sym == SDLK_BACKSPACE || sym == SDLK_PAGEUP) {
if(gamestack::pushed()) {
gamestack::pop();
if(!(flags & QUICKGEO)) return true;
@@ -286,7 +287,7 @@ bool handleKeyTour(int sym, int uni) {
currentslide--;
presentation(pmStart);
popScreenAll();
if(inhelp || (flags & ALWAYS_TEXT)) slidehelp();
if(sym != SDLK_PAGEUP) if(inhelp || (flags & ALWAYS_TEXT)) slidehelp();
return true;
}
int legal = slides[currentslide].flags & 7;