Package apple.gamecontroller.protocol
Interface GCAxisElement
-
- All Superinterfaces:
GCPhysicalInputElement
public interface GCAxisElement extends GCPhysicalInputElement
API-Since: 16.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable GCAxisInputabsoluteInput()The input reporting the value of the axis as the position between a lower and upper bound, if available.@NotNull GCRelativeInputrelativeInput()The input reporting axis values as the change (delta) since the last event.-
Methods inherited from interface apple.gamecontroller.protocol.GCPhysicalInputElement
aliases, localizedName, sfSymbolsName
-
-
-
-
Method Detail
-
absoluteInput
@Nullable @Nullable GCAxisInput absoluteInput()
The input reporting the value of the axis as the position between a lower and upper bound, if available.
-
relativeInput
@NotNull @NotNull GCRelativeInput relativeInput()
The input reporting axis values as the change (delta) since the last event. Certain kinds of axis elements are only able to report relative values. The tracking of a computer mouse, for example, has no fixed origin - only the change in position since the last event is reported. Some freely-rotating dials may also only report a value indicating which direction the dial was turned.
-
-