inpGetRightStickY

Returns the vertical position of the right 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 vertical position of the right analog stick. Takes controller (Int). Returns floating-point value between -1.0 and 1.0.

Technical Exegesis...

Returns the current vertical (Y-axis) position of the right analog stick as a floating-point value between -1.0 and 1.0, where -1.0 is fully down, 0.0 is centered, and 1.0 is fully up.

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