Contents

elements

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

Declaration

var elements: [String : GCControllerElement] { get }

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