SDL2: add pg up/down/home/end to the menu

This commit is contained in:
tmaul 2020-02-04 23:39:49 +00:00
parent 2d8dced539
commit c434658a5d
1 changed files with 19 additions and 2 deletions

View File

@ -1001,11 +1001,27 @@ int gui_process()
case SDLK_UP:
startGame--;
break;
case SDLK_DOWN:
startGame++;
break;
case SDLK_HOME:
startGame = -gamesperscreen_halfway;
break;
case SDLK_END:
startGame = filterGamesCount;
break;
case SDLK_PAGEUP:
startGame -= gamesperscreen_halfway;
break;
case SDLK_PAGEDOWN:
startGame += gamesperscreen_halfway;
break;
case SDLK_LEFT:
startGame -= 10;
break;
@ -1013,6 +1029,7 @@ int gui_process()
case SDLK_RIGHT:
startGame += 10;
break;
case SDLK_w:
findNextLetter();
break;