diff options
author | Thomas White <taw27@cook.msm.cam.ac.uk> | 2008-08-20 14:49:44 +0100 |
---|---|---|
committer | Thomas White <taw27@cook.msm.cam.ac.uk> | 2008-08-20 14:49:44 +0100 |
commit | 3eb420612c8f241b08a7854abd3b689736174478 (patch) | |
tree | 197341400b016fc6a9cbc3dd3e0efb1caaa414f7 | |
parent | dd0c8723e03a0e2bb4bb4e6ddfb59bfba6094206 (diff) |
Use either mouse button for thrust
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -280,7 +280,7 @@ int main(int argc, char *argv[]) { game->view_angle = deg2rad(-20.0) + (my-cy)*vang_scale; if ( game->view_angle > deg2rad(89.0) ) game->view_angle = deg2rad(89.0); if ( game->view_angle < deg2rad(-89.0) ) game->view_angle = deg2rad(-89.0); - if ( !game->thrusting && (buttons & SDL_BUTTON(1)) ) { + if ( !game->thrusting && ((buttons & SDL_BUTTON(1)) || (buttons & SDL_BUTTON(3))) ) { game->thrusting = 1; mouse_thrust = 1; } |