<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCPhysicalInputProfile/setStateFromPhysicalInput(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCPhysicalInputProfile(im)setStateFromPhysicalInput:"
  },
  "title" : "setStateFromPhysicalInput(_:)"
}
-->

# setStateFromPhysicalInput(_:)

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

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

## Parameters

`physicalInput`

The physical input profile to copy the input values from.

## Discussion

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

## See Also

[`isSnapshot`](/documentation/GameController/GCController/isSnapshot)

A Boolean value that indicates whether the controller is a snapshot of a controller.



---

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)