file: ControllerInputService.aus

class: ControllerInputService

[23:7] extends: EngineService

Wraps FXGL's ControllerInputService, the engine service that enumerates plugged-in game controllers (Xbox / PlayStation / generic SDL2-compatible) and exposes their state (button press/release, trigger value, stick position). Controllers must be plugged in before the engine starts; hot plug/unplug is not supported in FXGL 21.1. The service is reached via fxgl.getControllerInputService once the engine is running. Native library loading happens automatically on Linux, macOS, and Windows desktop. On platforms without native bindings the service silently returns an empty controller list.

Methods