---
title: "setStateFromPhysicalInput(_:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcphysicalinputprofile/setstatefromphysicalinput(_:)"
---

# setStateFromPhysicalInput(_:)

Copies the input values from a specified physical input profile to a snapshot of the profile.

## Declaration

```swift
func setStateFromPhysicalInput(_ physicalInput: GCPhysicalInputProfile)
```

## Parameters

- `physicalInput`: The physical input profile to copy the input values from.

## Discussion

Discussion If the associated controller isn’t a snapshot, this method does nothing.

## See Also

### Related Documentation

- [isSnapshot](gamecontroller/gccontroller/issnapshot.md)

### Setting snapshot values

- [capture()](gamecontroller/gcphysicalinputprofile/capture().md)
