Defined in: packages/engine/src/stores/input.ts:10
| Property |
Type |
Description |
intent |
Vector2 |
Where the player steered on the last frame; see MovementIntent. |
jump |
() => void |
Asks for one jump, as a press of Space does: the on-screen tap’s. |
steer |
(direction) => void |
Points the on-screen stick; the direction is copied. A Joystick’s onSteer calls it to reach the hero. |
steering |
boolean |
Whether the player was on a movement control at all. |