<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCVirtualController/updateConfiguration(forElement:configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCVirtualController(im)updateConfigurationForElement:configuration:"
  },
  "title" : "updateConfiguration(forElement:configuration:)"
}
-->

# updateConfiguration(forElement:configuration:)

Changes the configuration for one of the virtual controller’s input elements.

```
func updateConfiguration(forElement element: String, configuration config: (GCVirtualController.ElementConfiguration) -> GCVirtualController.ElementConfiguration)
```

## Parameters

`element`

The element whose configuration you want to change. For the possible values of this parameter, see the [`elements`](/documentation/GameController/GCVirtualController/Configuration/elements) property.

`config`

The new configuration for the element.

## Discussion

---

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)