file: KeyInputBuilder.aus

class: KeyInputBuilder

[25:7] extends: FxObj

Wraps FXGL's KeyInputBuilder (com.almasb.fxgl.dsl.KeyInputBuilder), the fluent setup for binding a key (optionally with a modifier and virtual button) to an Aussom callback set. Construct via one of the fxgl.onKeyBuilder(...) factory overloads — the underlying UserAction is registered with the active Input service in the builder's constructor. Wiring: wKey = aji.getStaticMember("javafx.scene.input.KeyCode", "W"); fxgl.onKeyBuilder(wKey) .onActionBegin(::startMoving) .onAction(::keepMoving) .onActionEnd(::stopMoving);

Methods