⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Input.XY

static Vec2 XY(InputXY xyType)

Gets a 2D axis input from the input system, like a controller thumbstick. X is left/right, and Y is forward/back, each ranging from -1 to 1.

   
InputXY xyType The type of XY input to retrieve.
RETURNS: Vec2 A Vec2 representing the current stick position.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!