file: UserAction.aus

class: UserAction

[17:7] extends: FxObj

Wraps FXGL's UserAction, the abstract event target that an Input binds to a KeyCode or MouseButton. Construct one with a name (which doubles as its identity for equals / hashCode) and register Aussom callbacks for the four lifecycle hooks: onActionBegin (the frame the trigger is pressed), onAction (every subsequent frame while held), onActionEnd (the frame the trigger is released), and onDoubleActionBegin (a second press within the double-press window).

Methods