diff options
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/client/input.cc b/src/client/input.cc index b231270..fc70b37 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -5,12 +5,9 @@ */ //project headers -#include "input.h" -#include "view.h" -#include "camera.h" - -#include "common/functions.h" +#include "client.h" #include "game/game.h" +#include "common/functions.h" namespace client { @@ -30,19 +27,19 @@ void Input::handle_keydown(SDL_keysym* keysym) game::shutdown(); break; case SDLK_SPACE: - Camera::nextmode(); + camera.nextmode(); break; case SDLK_LEFT: - Camera::rotate_left(); + camera.rotate_left(); break; case SDLK_RIGHT: - Camera::rotate_right(); + camera.rotate_right(); break; case SDLK_UP: - Camera::rotate_up(); + camera.rotate_up(); break; case SDLK_DOWN: - Camera::rotate_down(); + camera.rotate_down(); break; case SDLK_KP_PLUS: game::ship.thrust_increase(); |