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

# capture()

Returns a snapshot of the physical device inputs.

## Declaration

```swift
func capture() -> GCControllerInputState
```

## Return Value

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

## See Also

### Handling device input

- [nextInputState()](gamecontroller/gccontrollerliveinput/nextinputstate().md)
