GamepadAxis¶
Import: import system.window;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
GamepadAxis¶
An analog control on a standard-layout gamepad. Stick axes range from -1.0 to 1.0; positive X is right and positive Y is down. Trigger axes range from 0.0 (released) to 1.0 (fully pressed).
LeftX¶
Horizontal position of the left stick.
LeftY¶
Vertical position of the left stick.
RightX¶
Horizontal position of the right stick.
RightY¶
Vertical position of the right stick.
LeftTrigger¶
How far the left trigger is pressed.
RightTrigger¶
How far the right trigger is pressed.