file: ControllerAxis.aus

class: ControllerAxis

[17:14] static extends: object

Helper accessors for game-controller axis input. Controllers expose four analog axes -- the left and right thumbsticks (each a Point2D) and the left and right triggers (each a double in 0.0 - 1.0). Use these names with the corresponding Controller methods (getLeftStick, getRightStick, getLeftTrigger, getRightTrigger) rather than indexing by integer. The enum FXGL exposes for axes is per-platform native and not surfaced as a single Java enum, so this class exists primarily for documentation and to mirror the design plan layout.

Methods