Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SystemActions

[26:14] static extends: object

Static helper for FXGL's SystemActions object (com.almasb.fxgl.app.SystemActions). Exposes the single bind(input) entry point that registers the engine's built-in developer key bindings on the supplied Input service: Ctrl-8 — take a screenshot. 1 — toggle Dev Options pane (DEBUG / DEVELOPER). 2 — toggle Dev Console (DEBUG / DEVELOPER). Ctrl-9 — dump system info to the logger. Ctrl-R — restart the current game. Ctrl-7 — toggle the debug camera sub-scene. Most game code never calls this directly; FXGL wires the bindings in automatically when the developer menu is enabled. Use it when running tests or driving the engine outside the default startup path.

Methods

  • bind (object InputObj)

    Registers the system actions on the given Input service.

    • @p InputObj is an AussomJavaObject around an Input.
    • @r The Input AussomJavaObject (unchanged).
  • get ()

    Returns the singleton SystemActions object as an AussomJavaObject.

    • @r An AussomJavaObject around the SystemActions object.