mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
- Changed the Arrow Left & Right Keys to become strafing for Pirates
This commit is contained in:
parent
59403c4978
commit
b046a3c33d
@ -38,6 +38,22 @@ class ControlManager:
|
||||
inputState.watchWithModifiers("reverse", "arrow_down")
|
||||
inputState.watchWithModifiers("reverse", "mouse4")
|
||||
|
||||
if self.wantWASD:
|
||||
inputState.watchWithModifiers("slideLeft", "arrow_left")
|
||||
inputState.watch("turnLeft", "mouse-look_left", "mouse-look_left-done")
|
||||
inputState.watch("turnLeft", "force-turnLeft", "force-turnLeft-stop")
|
||||
|
||||
inputState.watchWithModifiers("slideRight", "arrow_right")
|
||||
inputState.watch("turnRight", "mouse-look_right", "mouse-look_right-done")
|
||||
inputState.watch("turnRight", "force-turnRight", "force-turnRight-stop")
|
||||
|
||||
inputState.watchWithModifiers("forward", "w")
|
||||
inputState.watchWithModifiers("reverse", "s")
|
||||
inputState.watchWithModifiers("slideLeft", "a")
|
||||
inputState.watchWithModifiers("slideRight", "d")
|
||||
inputState.watchWithModifiers("turnLeft", "q")
|
||||
inputState.watchWithModifiers("turnRight", "e")
|
||||
else:
|
||||
inputState.watchWithModifiers("turnLeft", "arrow_left")
|
||||
inputState.watch("turnLeft", "mouse-look_left", "mouse-look_left-done")
|
||||
inputState.watch("turnLeft", "force-turnLeft", "force-turnLeft-stop")
|
||||
@ -46,13 +62,6 @@ class ControlManager:
|
||||
inputState.watch("turnRight", "mouse-look_right", "mouse-look_right-done")
|
||||
inputState.watch("turnRight", "force-turnRight", "force-turnRight-stop")
|
||||
|
||||
if self.wantWASD:
|
||||
inputState.watchWithModifiers("forward", "w")
|
||||
inputState.watchWithModifiers("reverse", "s")
|
||||
inputState.watchWithModifiers("slideLeft", "a")
|
||||
inputState.watchWithModifiers("slideRight", "d")
|
||||
inputState.watchWithModifiers("turnLeft", "q")
|
||||
inputState.watchWithModifiers("turnRight", "e")
|
||||
|
||||
# Jump controls
|
||||
if self.wantWASD:
|
||||
|
Loading…
x
Reference in New Issue
Block a user