summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/game.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/games/sfcave-sdl/game.cpp b/noncore/games/sfcave-sdl/game.cpp
index e41e510..1ee0230 100644
--- a/noncore/games/sfcave-sdl/game.cpp
+++ b/noncore/games/sfcave-sdl/game.cpp
@@ -66,13 +66,17 @@ void Game :: init()
66 terrain->initTerrain(); 66 terrain->initTerrain();
67 player->init(); 67 player->init();
68} 68}
69 69
70void Game :: handleKeys( SDL_KeyboardEvent &key ) 70void Game :: handleKeys( SDL_KeyboardEvent &key )
71{ 71{
72 if ( !replay && key.keysym.sym == SDLK_SPACE ) 72 if ( !replay &&
73 (key.keysym.sym == SDLK_SPACE ||
74 key.keysym.sym == SDLK_KP_ENTER ||
75 key.keysym.sym == SDLK_RETURN ||
76 key.keysym.sym == SDLK_UP) )
73 { 77 {
74 if ( key.type == SDL_KEYDOWN ) 78 if ( key.type == SDL_KEYDOWN )
75 { 79 {
76 if ( !press ) 80 if ( !press )
77 replayList.push_back( nrFrames ); 81 replayList.push_back( nrFrames );
78 press = true; 82 press = true;