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

# buttons

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

## Declaration

```swift
var buttons: [String : GCControllerButtonInput] { get }
```

## Discussion

Discussion Use the GCInputXboxPaddleOne constant to get the P1 paddle button for an Xbox controller. button = physicalInputProfile.buttons[GCInputXboxPaddleOne] For more button names, see Extended gamepad input names and Xbox controller input names.

## See Also

### Accessing elements by name or key

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