Returns the horizontal position of the right analog stick.
Takes controller (Int).
Returns floating-point value between -1.0 and 1.0.
Input
Parameters & Returns
Parameters
controllerInt
Returns
Double
Quick Summary
Returns the horizontal position of the right 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 right 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.
Returns the current horizontal (X-axis) position of the right 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.0 if the controller is invalid or not connected.