<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCDevicePhysicalInput/inputStateAvailableHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(pl)GCDevicePhysicalInput(py)inputStateAvailableHandler"
  },
  "title" : "inputStateAvailableHandler"
}
-->

# inputStateAvailableHandler

The block that the profile calls when Game Controller adds an input state to the queue.

```
var inputStateAvailableHandler: ((any GCDevicePhysicalInput) -> Void)? { get set }
```

## Discussion

Set this property to track every element value change, not just the current value. When Game Controller invokes the handler, invoke the [`nextInputState()`](/documentation/GameController/GCDevicePhysicalInput/nextInputState()) method repeatedly to get all the buffered changes until the queue is empty.

To get just the current element value, use the [`elementValueDidChangeHandler`](/documentation/GameController/GCDevicePhysicalInput/elementValueDidChangeHandler) property instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)