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>2007-10-21 23:54:57 +0000
committerStijn Buys <ingar@osirion.org>2007-10-21 23:54:57 +0000
commitf8e9eab39a5e96d478762d06e27ec38f80128435 (patch)
treebf55c75dbedb1212f3effa23aa6df94932edf22d /src/client/input.cc
parent621f4ad1d509665e19738525c80e104b80fb7b26 (diff)
namespace and class cleanups
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc17
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();