---
title: capture()
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: gamecontroller/gcdevicephysicalinput/capture()
---

# capture()

Returns a snapshot of the physical device inputs.

## Declaration

```swift
func capture() -> any GCDevicePhysicalInputState
```

## Mentioned in

Handling input events

## Return Value

Return Value A new instance containing the current state of the physical device input.

## See Also

### Handling device input

- [nextInputState()](gamecontroller/gcdevicephysicalinput/nextinputstate().md)
- [inputStateAvailableHandler](gamecontroller/gcdevicephysicalinput/inputstateavailablehandler.md)
- [inputStateQueueDepth](gamecontroller/gcdevicephysicalinput/inputstatequeuedepth.md)
- [elementValueDidChangeHandler](gamecontroller/gcdevicephysicalinput/elementvaluedidchangehandler.md)
