Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-02 13:05:03 +0000
committerStijn Buys <ingar@osirion.org>2008-05-02 13:05:03 +0000
commit3dedab035c98772fd9607480bddc8ffd9d7dc799 (patch)
tree2d346751841dd85e9bf0edc421469239fead10c7 /src/client/input.cc
parent36ce28a7557c4b2b73316621471558354024ca54 (diff)
additional light properties
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index 87492c4..533ea64 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -66,21 +66,24 @@ void keyreleased(const SDL_keysym &keysym)
case SDLK_SPACE:
camera::next_mode();
+ local_roll = 0;
+ local_pitch = 0;
+ local_turn = 0;
break;
- case SDLK_KP8: // down
+ case SDLK_KP8: // turn down
local_pitch = 0.0f;
break;
- case SDLK_KP2: // up
+ case SDLK_KP2: // turn up
local_pitch = 0.0f;
break;
- case SDLK_KP4: // left
+ case SDLK_KP4: // turn left
local_turn = 0.0f;
break;
- case SDLK_KP6: // right
+ case SDLK_KP6: // turn right
local_turn = 0.0f;
break;
@@ -88,7 +91,7 @@ void keyreleased(const SDL_keysym &keysym)
local_roll = 0.0f;
break;
- case SDLK_KP_MULTIPLY: // roll light
+ case SDLK_KP_MULTIPLY: // roll right
local_roll = 0.0f;
break;