From ESOUI Wiki
Revision as of 02:48, 23 February 2019 by DavidJCobb
This function returns the amount by which the X-position of the gamepad's right stick has changed since the last frame, along the range of -1 (left) to 1 (right).
- If this boolean is true, then the deadzone will be included in the stick range. If this argument is false, then the deadzone will be excluded: the value 0 will represent the outer range of the deadzone rather than the perfect center of the stick.
if math.abs(GetGamepadRightStickDeltaX(false)) > 0.1 then d("You're moving the stick on the X-axis!") -- -- Human imprecision means that even if the stick is -- being moved mostly on the Y-axis, it probably -- won't be perfectly zeroed on the X-axis; thus the -- imprecise check. -- end