mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
leave q and e as strafe
This commit is contained in:
parent
8392266935
commit
19a60b1305
@ -55,6 +55,9 @@ class ControlManager:
|
|||||||
ist.append(inputState.watchWithModifiers("forward", "w", inputSource=inputState.WASD))
|
ist.append(inputState.watchWithModifiers("forward", "w", inputSource=inputState.WASD))
|
||||||
ist.append(inputState.watchWithModifiers("reverse", "s", inputSource=inputState.WASD))
|
ist.append(inputState.watchWithModifiers("reverse", "s", inputSource=inputState.WASD))
|
||||||
|
|
||||||
|
ist.append(inputState.watchWithModifiers("slideLeft", "q", inputSource=inputState.WASD))
|
||||||
|
ist.append(inputState.watchWithModifiers("slideRight", "e", inputSource=inputState.WASD))
|
||||||
|
|
||||||
# Used to switch between strafe and turn. We will default to turn
|
# Used to switch between strafe and turn. We will default to turn
|
||||||
self.WASDTurnTokens = ()
|
self.WASDTurnTokens = ()
|
||||||
self.setWASDTurn(1)
|
self.setWASDTurn(1)
|
||||||
@ -273,13 +276,9 @@ class ControlManager:
|
|||||||
self.WASDTurnTokens = (
|
self.WASDTurnTokens = (
|
||||||
inputState.watchWithModifiers("turnLeft", "a", inputSource=inputState.WASD),
|
inputState.watchWithModifiers("turnLeft", "a", inputSource=inputState.WASD),
|
||||||
inputState.watchWithModifiers("turnRight", "d", inputSource=inputState.WASD),
|
inputState.watchWithModifiers("turnRight", "d", inputSource=inputState.WASD),
|
||||||
inputState.watchWithModifiers("slideLeft", "q", inputSource=inputState.WASD),
|
|
||||||
inputState.watchWithModifiers("slideRight", "e", inputSource=inputState.WASD),
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.WASDTurnTokens = (
|
self.WASDTurnTokens = (
|
||||||
inputState.watchWithModifiers("turnLeft", "q", inputSource=inputState.WASD),
|
|
||||||
inputState.watchWithModifiers("turnRight", "e", inputSource=inputState.WASD),
|
|
||||||
inputState.watchWithModifiers("slideLeft", "a", inputSource=inputState.WASD),
|
inputState.watchWithModifiers("slideLeft", "a", inputSource=inputState.WASD),
|
||||||
inputState.watchWithModifiers("slideRight", "d", inputSource=inputState.WASD),
|
inputState.watchWithModifiers("slideRight", "d", inputSource=inputState.WASD),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user