Add input bindings for keyboard and gamepad in entity-instances.test.ts
This commit is contained in:
@@ -46,6 +46,27 @@ describe("entity registry defaults", () => {
|
|||||||
capsuleRadius: DEFAULT_PLAYER_START_CAPSULE_RADIUS,
|
capsuleRadius: DEFAULT_PLAYER_START_CAPSULE_RADIUS,
|
||||||
capsuleHeight: DEFAULT_PLAYER_START_CAPSULE_HEIGHT,
|
capsuleHeight: DEFAULT_PLAYER_START_CAPSULE_HEIGHT,
|
||||||
boxSize: DEFAULT_PLAYER_START_BOX_SIZE
|
boxSize: DEFAULT_PLAYER_START_BOX_SIZE
|
||||||
|
},
|
||||||
|
inputBindings: {
|
||||||
|
keyboard: {
|
||||||
|
moveForward: "KeyW",
|
||||||
|
moveBackward: "KeyS",
|
||||||
|
moveLeft: "KeyA",
|
||||||
|
moveRight: "KeyD",
|
||||||
|
jump: "Space",
|
||||||
|
sprint: "ShiftLeft",
|
||||||
|
crouch: "ControlLeft"
|
||||||
|
},
|
||||||
|
gamepad: {
|
||||||
|
moveForward: "leftStickUp",
|
||||||
|
moveBackward: "leftStickDown",
|
||||||
|
moveLeft: "leftStickLeft",
|
||||||
|
moveRight: "leftStickRight",
|
||||||
|
jump: "buttonSouth",
|
||||||
|
sprint: "leftStickPress",
|
||||||
|
crouch: "buttonEast",
|
||||||
|
cameraLook: "rightStick"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user