Add input bindings for keyboard and gamepad in entity-instances.test.ts

This commit is contained in:
2026-04-11 18:45:11 +02:00
parent 7974838464
commit bf34e5e971

View File

@@ -46,6 +46,27 @@ describe("entity registry defaults", () => {
capsuleRadius: DEFAULT_PLAYER_START_CAPSULE_RADIUS,
capsuleHeight: DEFAULT_PLAYER_START_CAPSULE_HEIGHT,
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"
}
}
});