Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ControllerButton

[13:14] static extends: object

Helper for FXGL's VirtualButton enum, which catalogs the standard game-controller buttons (A, B, X, Y, LB, RB, START, SELECT, etc.) used in Controller state queries. The enum lives in com.almasb.fxgl.input.virtual.VirtualButton.

Methods

  • get (string Name)

    Resolves a VirtualButton enum value by name.

    • @p Name is the button name (e.g. "A", "B", "X", "Y", "LB", "RB", "START", "SELECT", "UP", "DOWN", "LEFT", "RIGHT").
    • @r An AussomJavaObject around the VirtualButton value.
  • names ()

    Returns the list of valid VirtualButton enum names so Aussom callers can discover what get(Name) accepts.

    • @r A list of strings.