From 7dd36872a3eb63eb1c3c7a17549f3eeba92f1b32 Mon Sep 17 00:00:00 2001 From: andyq Date: Fri, 28 Feb 2003 23:56:03 +0000 Subject: Changed keyboard handling to accept UP, ENTER and RETURN for moving ship --- 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 @@ -69,7 +69,11 @@ void Game :: init() void Game :: handleKeys( SDL_KeyboardEvent &key ) { - if ( !replay && key.keysym.sym == SDLK_SPACE ) + if ( !replay && + (key.keysym.sym == SDLK_SPACE || + key.keysym.sym == SDLK_KP_ENTER || + key.keysym.sym == SDLK_RETURN || + key.keysym.sym == SDLK_UP) ) { if ( key.type == SDL_KEYDOWN ) { -- cgit v0.9.0.2