API Reference › Input › Input.move_i
method

Input.move_i

Input.move_i() -> IVec2

WASD or the arrow keys, and the left stick of pad 0 (past a 0.35 deadzone) when one is connected, as an IVec2 of -1, 0 or 1 per axis — what a top-down mover feeds TopDown.move.

Example

# doc-check: skip — illustrative
let move = Input.move_i()
TopDown.move(player, move.x, move.y)
← All symbols