Contents

valueDidChangeHandler

The block that the input object calls when the value changes.

Declaration

var valueDidChangeHandler: ((any GCPhysicalInputElement, any GCAxisInput, Float) -> Void)? { get set }

Discussion

The block’s parameters are:

element

The element whose value changed.

input

The input object that changed.

value

The value of the axis at the time the input object calls this handler.

See Also

Getting the value