inpGetLeftStickX

Returns the horizontal position of the left analog stick. Takes controller (Int). Returns floating-point value between -1.0 and 1.0.

Input

Parameters & Returns

Parameters

controller Int

Returns

Double

Quick Summary

Returns the horizontal position of the left analog stick. Takes controller (Int). Returns floating-point value between -1.0 and 1.0.

Technical Exegesis...

Returns the current horizontal (X-axis) position of the left analog stick as a floating-point value between -1.0 and 1.0, where -1.0 is fully left, 0.0 is centered, and 1.0 is fully right.

The stick position is read from XInput with automatic deadzone handling to prevent drift when the stick is near center. The controller must be created with inpCreateController() and updated with inpUpdateController() before reading stick values.

Only returns input when the active canvas or window has focus. Returns 0.

Example

Example.bam
; No example implemented yet