Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: InputModifier

[12:14] static extends: object

Helper for FXGL's InputModifier enum: NONE, CTRL, SHIFT, ALT. Used as the optional third argument to Input.addAction to require a specific modifier key alongside the primary trigger.

Methods

  • get (string Name)

    Resolves an InputModifier value by name.

    • @p Name is the modifier name: "NONE", "CTRL", "SHIFT", or "ALT".
    • @r An AussomJavaObject wrapping the InputModifier value.
  • values ()

    Returns InputModifier[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf — strict variant of get.

  • from (object EventAjo)

    Resolves the InputModifier active in the supplied JavaFX key or mouse event. Returns NONE when no modifier is held.

  • isTriggered (object ModifierAjo, object EventAjo)

    Returns true when the supplied modifier AJO matches the modifier active in the given JavaFX key or mouse event.