diff options
author | Stijn Buys <ingar@osirion.org> | 2007-10-21 23:54:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2007-10-21 23:54:57 +0000 |
commit | f8e9eab39a5e96d478762d06e27ec38f80128435 (patch) | |
tree | bf55c75dbedb1212f3effa23aa6df94932edf22d /src/client/input.cc | |
parent | 621f4ad1d509665e19738525c80e104b80fb7b26 (diff) |
namespace and class cleanups
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(); |