Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: FxObj
Wraps an AussomTriggerListener (subclass of FXGL's abstract TriggerListener) so Aussom code can subscribe to raw trigger begin/hold/end events without naming a UserAction. The full 9-hook surface is exposed: generic action hooks (onActionBegin/onAction/onActionEnd) plus key-specific hooks (onKeyBegin/onKey/onKeyEnd) and button-specific hooks (onButtonBegin/onButton/onButtonEnd). Register with Input.addTriggerListener once configured.
TriggerListener ()
Creates a new TriggerListener wrapper. Empty by default; use the on* methods to wire callbacks, then pass .obj to Input.addTriggerListener.
onActionBegin (callback Cb)
Registers a callback that fires once when any trigger begins. Callback receives the Trigger AJO.
this objectonAction (callback Cb)
Registers a callback that fires every tick while any trigger is held.
this objectonActionEnd (callback Cb)
Registers a callback that fires once when any trigger ends.
this objectonKeyBegin (callback Cb)
Registers a callback specific to key triggers (begin). Callback receives the KeyTrigger AJO.
this objectonKey (callback Cb)
Registers a callback that fires every tick while a key trigger is held.
this objectonKeyEnd (callback Cb)
Registers a callback that fires once when a key trigger ends.
this objectonButtonBegin (callback Cb)
Registers a callback specific to mouse-button triggers (begin).
this objectonButton (callback Cb)
Registers a callback that fires every tick while a button trigger is held.
this objectonButtonEnd (callback Cb)
Registers a callback that fires once when a button trigger ends.
this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.