---
title: elements
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcphysicalinputprofile/elements
---

# elements

The elements in the profile as key-value pairs for lookup by name.

## Declaration

```swift
var elements: [String : GCControllerElement] { get }
```

## Discussion

Discussion Use this property to access elements by name. For example, use the name “Button A” to get the face button of an extended gamepad profile. button = physicalInputProfile.elements[“Button A”] For more button names, see Extended gamepad input names.

## See Also

### Accessing elements by name or key

- [buttons](gamecontroller/gcphysicalinputprofile/buttons.md)
- [axes](gamecontroller/gcphysicalinputprofile/axes.md)
- [dpads](gamecontroller/gcphysicalinputprofile/dpads.md)
- [touchpads](gamecontroller/gcphysicalinputprofile/touchpads.md)
- [subscript(_:)](gamecontroller/gcphysicalinputprofile/subscript(_:).md)
