Basics
Guides
API Reference
Basics
Guides
API Reference
[20:7] extends: FxObj
Wraps an AussomVirtualMenuKey (subclass of FXGL's abstract VirtualMenuKey) so Aussom code can build a custom on-screen menu / pause button. Register the onCreateView callback to supply the JavaFX Node wrapper; FXGL wires the press so that the configured KeyCode is mocked. Example: vm = new VirtualMenuKey(fxgl.getInput(), "ESCAPE", true); vm.onCreateView(::buildMenuButton);
VirtualMenuKey (InputAjo, string KeyName = "ESCAPE", bool IsMenuEnabled = true)
Creates a new VirtualMenuKey bridge.
InputAjo is an Input wrapper or AussomJavaObject.KeyName is the javafx.scene.input.KeyCode enum name (e.g. "ESCAPE") to mock on press.IsMenuEnabled chooses mockKeyPressEvent (true, fires menu hooks) versus mockKeyPress (false).adopt (object Ajo)
Wraps an existing AussomVirtualMenuKey AussomJavaObject.
onCreateView (callback Cb)
Registers the createView callback. The callback takes no arguments and must return a JavaFX Node wrapper.
Cb is a callback () -> Node.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.