---
title: GCVirtualController.Configuration
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gcvirtualcontroller/configuration
---

# GCVirtualController.Configuration

The configuration of a virtual controller.

## Declaration

```swift
class Configuration
```

## Mentioned in

Adding virtual controls to games that support game controllers in iOS

## Overview

Overview You configure a virtual controller by specifying the input elements it contains. Then using the updateConfiguration(forElement:configuration:) method, you can customize individual elements.

## Topics

### Setting the elements

- [elements](gamecontroller/gcvirtualcontroller/configuration/elements.md)

### Presenting a custom interface

- [isHidden](gamecontroller/gcvirtualcontroller/configuration/ishidden.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Creating virtual controllers

- [init(configuration:)](gamecontroller/gcvirtualcontroller/init(configuration:).md)
