[Change] Allow left&right mouse buttons together to fire laser. -- Still need to fix the rendering of the laser.
This commit is contained in:
parent
c9b3082965
commit
c19e9520b7
@ -88,7 +88,8 @@ void Player::AITurn(void) {
|
||||
if(L3D::KeyState(SDLK_a)) SetThrusterState(ShipType::THRUSTER_LEFT, 1.0f);
|
||||
if(L3D::KeyState(SDLK_d)) SetThrusterState(ShipType::THRUSTER_RIGHT, 1.0f);
|
||||
|
||||
if(L3D::KeyState(SDLK_SPACE)) SetGunState(0,1);
|
||||
if(L3D::KeyState(SDLK_SPACE) || (L3D::MouseButtonState(1) &&
|
||||
L3D::MouseButtonState(3))) SetGunState(0, 1);
|
||||
else SetGunState(0,0);
|
||||
|
||||
/* No torques at huge time accels -- ODE hates it. */
|
||||
|
Loading…
Reference in New Issue
Block a user