Type Alias GCControllerButtonValueChangedHandler

Source
pub type GCControllerButtonValueChangedHandler = *mut DynBlock<dyn Fn(NonNull<GCControllerButtonInput>, c_float, Bool)>;
Available on crate features GCControllerButtonInput and GCControllerElement and block2 only.
Expand description

Set this block if you want to be notified when the value on this button changes.

Parameter button: the element that has been modified.

Parameter value: the value the button was set to at the time the valueChangedHandler fired.

Parameter pressed: the pressed state of the button at the time the valueChangedHandler fired.

See: value

See: pressed

See also Apple’s documentation