Basics
Guides
API Reference
Basics
Guides
API Reference
[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.
names ()
Returns the canonical axis-name strings as a list, for use in UI display or rebind menus.
A list of strings.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.