Package apple.gamecontroller.protocol
Interface GCTouchedStateInput
-
public interface GCTouchedStateInputAn object conforming to \c GCTouchedStateInput represents the touched state of an element. Some buttons feature capacitive touch capabilities, where the user can touch the button without pressing it. In such cases, a button can be touched without being pressed. API-Since: 16.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGCTouchedStateInput.Block_setTouchedDidChangeHandlerstatic interfaceGCTouchedStateInput.Block_touchedDidChangeHandler_ret
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisTouched()Some buttons feature capacitive touch capabilities, where the user can touch the button without pressing it.doublelastTouchedStateLatency()The interval (in seconds) between the timestamp of the last touched state change and the current time.doublelastTouchedStateTimestamp()The timestamp of the last touched state change.voidsetTouchedDidChangeHandler(@Nullable GCTouchedStateInput.Block_setTouchedDidChangeHandler value)Set this block if you want to be notified when the touched state changes.@NotNull NSSet<?>sources()An object describing the physical action(s) the user performs to manipulate this input.@Nullable GCTouchedStateInput.Block_touchedDidChangeHandler_rettouchedDidChangeHandler()Set this block if you want to be notified when the touched state changes.
-
-
-
Method Detail
-
isTouched
boolean isTouched()
Some buttons feature capacitive touch capabilities, where the user can touch the button without pressing it. In such cases, a button will be touched before it is pressed.- See Also:
touchedDidChangeHandler(),GCPressedStateInput
-
lastTouchedStateLatency
double lastTouchedStateLatency()
The interval (in seconds) between the timestamp of the last touched state change and the current time. This should be treated as a lower bound of the event latency. It may not include (wired or wireless) transmission latency, or latency accrued on the device before the event was transmitted to the host.
-
lastTouchedStateTimestamp
double lastTouchedStateTimestamp()
The timestamp of the last touched state change. This time interval is not relative to any specific point in time. You can subtract a previous timestamp from the returned timestamp to determine the time (in seconds) between changes to the value.
-
setTouchedDidChangeHandler
void setTouchedDidChangeHandler(@Nullable @Nullable GCTouchedStateInput.Block_setTouchedDidChangeHandler value)Set this block if you want to be notified when the touched state changes.
-
touchedDidChangeHandler
@Nullable @Nullable GCTouchedStateInput.Block_touchedDidChangeHandler_ret touchedDidChangeHandler()
Set this block if you want to be notified when the touched state changes.
-
sources
@NotNull @NotNull NSSet<?> sources()
An object describing the physical action(s) the user performs to manipulate this input. API-Since: 17.0
-
-