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-28 09:19:35 +0000
committerStijn Buys <ingar@osirion.org>2007-10-28 09:19:35 +0000
commit09789179cd77ce2f626fffbc94a90ec8784b76df (patch)
treeea265dc9b338fc9673d55f7db0623fe4b2aa5824 /src/client/input.cc
parent795ec263875665e530458c7d95a1fb0242d55f8f (diff)
game::Ship interface changes
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index 5cafb7d..270ccb7 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -56,16 +56,16 @@ void Input::handle_keypressed(SDL_keysym* keysym)
camera.rotate_down();
break;
case SDLK_KP_PLUS:
- game::ship.thrust_increase();
+ game::ship.set_thrust(game::ship.thrust() + 0.08f);
break;
case SDLK_KP_MINUS:
- game::ship.thrust_decrease();
+ game::ship.set_thrust(game::ship.thrust() - 0.1f);
break;
case SDLK_KP4:
- game::ship.turn_left();
+ game::ship.set_yaw(game::ship.yaw() + 10);
break;
case SDLK_KP6:
- game::ship.turn_right();
+ game::ship.set_yaw(game::ship.yaw() - 10);
break;
default:
break;