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

# capture()

Returns a snapshot of the controller with its current element values.

## Declaration

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

## Return Value

Return Value A snapshot of the controller.

## Discussion

Discussion A snapshot is a copy of a real or virtual controller at a moment in time with its current element values. Unlike other controllers, you can set the values of a snapshot’s GCControllerElement objects.

## See Also

### Creating snapshots

- [withExtendedGamepad()](gamecontroller/gccontroller/withextendedgamepad().md)
- [withMicroGamepad()](gamecontroller/gccontroller/withmicrogamepad().md)
- [isSnapshot](gamecontroller/gccontroller/issnapshot.md)
