Interface GCDevicePhysicalInputStateDiff


  • public interface GCDevicePhysicalInputStateDiff
    An object conforming to the \c GCDevicePhysicalInputStateDiff protocol contains the input state differences between the current and previous \c GCDevicePhysicalInputState objects returned from the \c -nextInputState method of \c GCDevicePhysicalInput. API-Since: 16.0
    • Method Detail

      • changeForElement

        long changeForElement​(@NotNull
                              @NotNull GCPhysicalInputElement element)
        Check if a value of \a element changed, compared the previous input state.
        Parameters:
        element - The element to check. This may be a pointer to either the "live" element from the device's physical input, or a pointer to an element from any input state "snapshot" of the device's physical input.
      • changedElements

        @Nullable
        @Nullable NSEnumerator<java.lang.Object> changedElements()
        Gets an enumerator that iterates over the elements that have changed, compared the previous input state. This method returns \c nil if the changed elements could not be determined - typically because the input state queue filled up and older input state snapshots were dropped.