buttons
The buttons in the profile as key-value pairs for lookup by name.
Declaration
var buttons: [String : GCControllerButtonInput] { get }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.