Interface GCTouchedStateInput


  • public interface GCTouchedStateInput
    An 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
    • 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.
      • sources

        @NotNull
        @NotNull NSSet<?> sources()
        An object describing the physical action(s) the user performs to manipulate this input. API-Since: 17.0