Package apple.gamecontroller.protocol
Interface GCDevicePhysicalInputStateDiff
-
public interface GCDevicePhysicalInputStateDiffAn 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable NSEnumerator<java.lang.Object>changedElements()Gets an enumerator that iterates over the elements that have changed, compared the previous input state.longchangeForElement(@NotNull GCPhysicalInputElement element)Check if a value of \a element changed, compared the previous input state.
-
-
-
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.
-
-