<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TouchController",
  "identifier" : "/documentation/TouchController/TCControlLabel",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Touch Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)TCControlLabel"
  },
  "title" : "TCControlLabel"
}
-->

# TCControlLabel

A label you associate with a touch control and provides a semantic description.

```
class TCControlLabel
```

## Topics

### Creating a control label

[`init(name: String, role: TCControlLabel.Role)`](/documentation/TouchController/TCControlLabel/init(name:role:))

Creates a new instance with the provided name and type.

### Inspecting the control

[`var role: TCControlLabel.Role`](/documentation/TouchController/TCControlLabel/role-swift.property)

The type of the control label.

[`enum Role`](/documentation/TouchController/TCControlLabel/Role-swift.enum)

Defines the role for a control label. This determines the type of control on
the touch controller’s associated GCController.

[`enum Role`](/documentation/TouchController/TCControlLabel/Role-swift.enum)

Defines the role for a control label. This determines the type of control on
the touch controller’s associated GCController.

### Accessing the controls

[`class var buttonA: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonA)

Creates a pre-configured label for the “A” button.

[`class var buttonB: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonB)

Creates a pre-configured label for the “B” button.

[`class var buttonLeftShoulder: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonLeftShoulder)

Creates a pre-configured label for the left shoulder button.

[`class var buttonLeftTrigger: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonLeftTrigger)

Creates a pre-configured label for the left trigger button.

[`class var buttonMenu: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonMenu)

Creates a pre-configured label for the “Menu” button.

[`class var buttonOptions: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonOptions)

Creates a pre-configured label for the “Options” button.

[`class var buttonRightShoulder: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonRightShoulder)

Creates a pre-configured label for the right shoulder button.

[`class var buttonRightTrigger: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonRightTrigger)

Creates a pre-configured label for the right trigger button.

[`class var buttonX: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonX)

Creates a pre-configured label for the “X” button.

[`class var buttonY: TCControlLabel`](/documentation/TouchController/TCControlLabel/buttonY)

Creates a pre-configured label for the “Y” button.

[`class var directionPad: TCControlLabel`](/documentation/TouchController/TCControlLabel/directionPad)

Creates a pre-configured label for the direction pad.

[`class var leftThumbstick: TCControlLabel`](/documentation/TouchController/TCControlLabel/leftThumbstick)

Creates a pre-configured label for the left thumbstick.

[`class var leftThumbstickButton: TCControlLabel`](/documentation/TouchController/TCControlLabel/leftThumbstickButton)

Creates a pre-configured label for the left thumbstick button.

[`class var rightThumbstick: TCControlLabel`](/documentation/TouchController/TCControlLabel/rightThumbstick)

Creates a pre-configured label for the right thumbstick.

[`class var rightThumbstickButton: TCControlLabel`](/documentation/TouchController/TCControlLabel/rightThumbstickButton)

Creates a pre-configured label for the right thumbstick button.

### Instance Properties

[`var name: String`](/documentation/TouchController/TCControlLabel/name)

The name of the control label that you use for lookup on a game controller instance.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)