Interface GCButtonElement

  • All Superinterfaces:
    GCPhysicalInputElement

    public interface GCButtonElement
    extends GCPhysicalInputElement
    An object conforming to \c GCButtonElement represents a momentary switch, such as a push button. A button's input only asserts while the user is interacting with it, and then returns to a preferred state (not pressed, not touched). API-Since: 16.0
    • Method Detail

      • pressedInput

        @NotNull
        @NotNull java.lang.Object pressedInput()
        Get the input containing the pressed state of the button.
      • touchedInput

        @Nullable
        @Nullable GCTouchedStateInput touchedInput()
        Get the input containing the touched state of the button. Some buttons feature capacitive touch capabilities where the user can touch the button without pressing it.