Type Alias GCExtendedGamepadValueChangedHandler

Source
pub type GCExtendedGamepadValueChangedHandler = *mut DynBlock<dyn Fn(NonNull<GCExtendedGamepad>, NonNull<GCControllerElement>)>;
Available on crate features GCControllerElement and GCExtendedGamepad and GCPhysicalInputProfile and block2 only.
Expand description

Set this block if you want to be notified when a value on a element changed. If multiple elements have changed this block will be called for each element that changed. As elements in a collection, such as the axis in a dpad, tend to change at the same time and thus will only call this once with the collection as the element.

Parameter gamepad: this gamepad that is being used to map the raw input data into logical values on controller elements such as the dpad or the buttons.

Parameter element: the element that has been modified.

See also Apple’s documentation