---
title: nextInputState()
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: gamecontroller/gcracingwheelinput/nextinputstate()
---

# nextInputState()

Returns the next input state of the racing wheel from the queue.

## Declaration

```swift
func nextInputState() -> (any GCRacingWheelInputState & GCDevicePhysicalInputStateDiff)?
```

## Return Value

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

## Discussion

Discussion This method removes the next input state from the queue.
