Browse Source

made turn or slide turn

Dave Schuyler 20 years ago
parent
commit
8944514619
1 changed files with 4 additions and 4 deletions
  1. 4 4
      direct/src/controls/ShipPilot.py

+ 4 - 4
direct/src/controls/ShipPilot.py

@@ -608,11 +608,11 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
         # get the button states:
         forward = inputState.isSet("forward")
         reverse = inputState.isSet("reverse")
-        turnLeft = inputState.isSet("shipTurnLeft")
-        turnRight = inputState.isSet("shipTurnRight")
+        turnLeft = inputState.isSet("slideLeft") or inputState.isSet("turnLeft")
+        turnRight = inputState.isSet("slideRight") or inputState.isSet("turnRight")
         slide = inputState.isSet("slide")
-        slideLeft = inputState.isSet("shipSlideLeft")
-        slideRight = inputState.isSet("shipSlideRight")
+        slideLeft = 0
+        slideRight = 0
         jump = inputState.isSet("jump")
         # Determine what the speeds are based on the buttons: