inputStateAvailableHandler
The block that the profile calls when Game Controller adds an input state to the queue.
Declaration
var inputStateAvailableHandler: ((any GCDevicePhysicalInput) -> Void)? { get set }Mentioned in
Discussion
Set this property to track every element value change, not just the current value. When Game Controller invokes the handler, invoke the nextInputState() method repeatedly to get all the buffered changes until the queue is empty.
To get just the current element value, use the elementValueDidChangeHandler property instead.