From ESOUI Wiki
This function returns the Y-position of the gamepad's right stick, along the range of -1 (backward/down) to 1 (forward/up).
The returned value may be subject to both hardware variation and floating-point imprecision, and this may further be affected by whether you choose to include the deadzone. It may not be possible for the joystick to reach -1 or 1; when excluding the deadzone, mine tends to max out at magnitudes around 0.999.
- 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 GetGamepadRightStickY(false) > 0.9 then d("You sure do have that right stick pushed far forward, huh?") end