Update player movement and input handling in App.tsx
This commit is contained in:
@@ -371,12 +371,12 @@ function getPlayerStartMovementTemplateDescription(
|
|||||||
): string {
|
): string {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case "default":
|
case "default":
|
||||||
return "Shared movement basis for First Person and Third Person. Keeps the authored path typed and prepares explicit jump, sprint, and crouch capabilities for later slices.";
|
return "Shared movement basis for First Person and Third Person with real jump, sprint, and crouch support on the runtime controller path.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPlayerStartMovementActionLabel(
|
function getPlayerStartInputActionLabel(
|
||||||
action: PlayerStartMovementAction
|
action: PlayerStartInputAction
|
||||||
): string {
|
): string {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case "moveForward":
|
case "moveForward":
|
||||||
@@ -387,6 +387,12 @@ function getPlayerStartMovementActionLabel(
|
|||||||
return "Left";
|
return "Left";
|
||||||
case "moveRight":
|
case "moveRight":
|
||||||
return "Right";
|
return "Right";
|
||||||
|
case "jump":
|
||||||
|
return "Jump";
|
||||||
|
case "sprint":
|
||||||
|
return "Sprint";
|
||||||
|
case "crouch":
|
||||||
|
return "Crouch";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -448,6 +454,33 @@ function formatPlayerStartGamepadBindingLabel(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function formatPlayerStartGamepadActionBindingLabel(
|
||||||
|
binding: PlayerStartGamepadActionBinding
|
||||||
|
): string {
|
||||||
|
switch (binding) {
|
||||||
|
case "buttonSouth":
|
||||||
|
return "South Button";
|
||||||
|
case "buttonEast":
|
||||||
|
return "East Button";
|
||||||
|
case "buttonWest":
|
||||||
|
return "West Button";
|
||||||
|
case "buttonNorth":
|
||||||
|
return "North Button";
|
||||||
|
case "leftShoulder":
|
||||||
|
return "Left Shoulder";
|
||||||
|
case "rightShoulder":
|
||||||
|
return "Right Shoulder";
|
||||||
|
case "leftTrigger":
|
||||||
|
return "Left Trigger";
|
||||||
|
case "rightTrigger":
|
||||||
|
return "Right Trigger";
|
||||||
|
case "leftStickPress":
|
||||||
|
return "Left Stick Press";
|
||||||
|
case "rightStickPress":
|
||||||
|
return "Right Stick Press";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function formatPlayerStartGamepadCameraLookBindingLabel(
|
function formatPlayerStartGamepadCameraLookBindingLabel(
|
||||||
binding: PlayerStartGamepadCameraLookBinding
|
binding: PlayerStartGamepadCameraLookBinding
|
||||||
): string {
|
): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user