<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCPhysicalInputProfile/mappedElementAlias(forPhysicalInputName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCPhysicalInputProfile(im)mappedElementAliasForPhysicalInputName:"
  },
  "title" : "mappedElementAlias(forPhysicalInputName:)"
}
-->

# mappedElementAlias(forPhysicalInputName:)

Returns the name of the input element to which the user remaps the given physical element.

```
func mappedElementAlias(forPhysicalInputName inputName: String) -> String
```

## Parameters

`inputName`

The name of the physical element. For possible values, see [Extended gamepad input names](/documentation/GameController/extended-gamepad-input-names).

## Return Value

The name of the input element to which the user remaps the physical element, or `nil` if the user doesn’t remap the physical element.

## Discussion

Use this method to get the alias for an input element. For example, if the user remaps a physical press of the controller’s A button to button B, then passing [`GCInputButtonA`](/documentation/GameController/GCInputButtonA-8z15w) to this method returns [`GCInputButtonB`](/documentation/GameController/GCInputButtonB-6z361).

---

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)