Contents

nextInputState()

Returns the next device input state from the queue.

Declaration

func nextInputState() -> (any GCControllerInputState & GCDevicePhysicalInputStateDiff)?

Return Value

The next input state in the queue or nil if the queue is empty.

See Also

Handling device input