GetGamepadRightStickDeltaX

From ESOUI Wiki

Jump to: navigation, search

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).

Arguments

includeDeadzone
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.

Example

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

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox