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

# dpads

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

## Declaration

```swift
var dpads: [String : GCControllerDirectionPad] { get }
```

## Discussion

Discussion Use the GCInputDualShockTouchpadOne name to access an element on a DualShock controller. touchpadOne = physicalInputProfile.dpads[GCInputDualShockTouchpadOne]

## See Also

### Accessing elements by name or key

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