<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCVirtualController/Configuration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller",
      "GameController"
    ],
    "preciseIdentifier" : "c:objc(cs)GCVirtualControllerConfiguration"
  },
  "title" : "GCVirtualController.Configuration"
}
-->

# GCVirtualController.Configuration

The configuration of a virtual controller.

```
class Configuration
```

## Overview

You configure a virtual controller by specifying the input elements it contains. Then using the [`updateConfiguration(forElement:configuration:)`](/documentation/GameController/GCVirtualController/updateConfiguration(forElement:configuration:)) method, you can customize individual elements.

## Topics

### Setting the elements

[`var elements: Set<String>`](/documentation/GameController/GCVirtualController/Configuration/elements)

The input elements of a virtual controller.

### Presenting a custom interface

[`var isHidden: Bool`](/documentation/GameController/GCVirtualController/Configuration/isHidden)

A Boolean value that indicates whether the system or the app presents the virtual interface.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)