diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/input.cc | 13 |
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; |