---
title: "mappedElementAlias(forPhysicalInputName:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcphysicalinputprofile/mappedelementalias(forphysicalinputname:)"
---

# mappedElementAlias(forPhysicalInputName:)

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

## Declaration

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

## Parameters

- `inputName`: The name of the physical element. For possible values, see doc://com.apple.gamecontroller/documentation/GameController/extended-gamepad-input-names.

## Return Value

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

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 to this method returns GCInputButtonB.

## See Also

### Remapping input elements

- [hasRemappedElements](gamecontroller/gcphysicalinputprofile/hasremappedelements.md)
- [mappedPhysicalInputNames(forElementAlias:)](gamecontroller/gcphysicalinputprofile/mappedphysicalinputnames(forelementalias:).md)
- [GCControllerUserCustomizationsDidChange](foundation/nsnotification/name-swift.struct/gccontrollerusercustomizationsdidchange.md)
