Skip to content

@modoki/engine / index / inputAxis

Function: inputAxis()

inputAxis(world, a): number

Current value of an analog axis (−1…+1), 0 if no Input resource.

Parameters

world

World

a

"moveX" | "moveY" | "lookX" | "lookY"

Returns

number

Built with Modoki.