file: VirtualController.aus

class: VirtualController

[23:7] extends: FxObj

Wraps an AussomVirtualController (subclass of FXGL's abstract VirtualController) so Aussom code can build a custom on-screen Y / B / A / X button group. Register the onCreateView callback to supply per-button JavaFX Node wrappers; FXGL handles the press/release wiring. Example: vc = new VirtualController(fxgl.getInput()); vc.onCreateView(::buildButton); gameScene.addUINode(vc.createView()); public buildButton(btnName) { return new Circle(40.0); }

Methods