Package apple.gamecontroller.protocol
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.ObjectpressedInput()Get the input containing the pressed state of the button.@Nullable GCTouchedStateInputtouchedInput()Get the input containing the touched state of the button.-
Methods inherited from interface apple.gamecontroller.protocol.GCPhysicalInputElement
aliases, localizedName, sfSymbolsName
-
-
-
-
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.
-
-