Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: FxObj
Wraps FXGL's InputSequence (com.almasb.fxgl.input.InputSequence), a Konami-code-style key-sequence detector. Construct with at least two KeyCode names; matches returns true when the recent suffix of the supplied key queue equals the configured sequence. Typical use: keep a queue of recently-pressed KeyCodes and pass it to matches(queue) on every key event to detect cheat codes or combos.
InputSequence (list KeyNames)
Creates a new InputSequence from a list of KeyCode names. The list must contain at least two entries.
KeyNames is a list of KeyCode enum names.adopt (object Ajo)
Wraps an existing InputSequence AussomJavaObject.
Ajo is an AussomJavaObject around an InputSequence.A new wrapper.getLastKey ()
Returns the last KeyCode in the sequence (commonly used to gate "only check on this key press").
An AussomJavaObject around a KeyCode.matches (object QueueObj)
Returns true when the trailing suffix of the supplied Queue of KeyCodes equals this sequence.
QueueObj is an AussomJavaObject around a java.util.QueueA bool.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.