Diffstat (limited to 'noncore/games/sfcave-sdl/game.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/game.cpp | 6 |
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 | |||
@@ -64,17 +64,21 @@ void Game :: init() | |||
64 | highScore = atoi( parent->loadSetting( key, "0" ).c_str() ); | 64 | highScore = atoi( parent->loadSetting( key, "0" ).c_str() ); |
65 | 65 | ||
66 | terrain->initTerrain(); | 66 | terrain->initTerrain(); |
67 | player->init(); | 67 | player->init(); |
68 | } | 68 | } |
69 | 69 | ||
70 | void Game :: handleKeys( SDL_KeyboardEvent &key ) | 70 | void 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; |
79 | } | 83 | } |
80 | else | 84 | else |