---
title: "mappedPhysicalInputNames(forElementAlias:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcphysicalinputprofile/mappedphysicalinputnames(forelementalias:)"
---

# mappedPhysicalInputNames(forElementAlias:)

Returns the physical input elements to which the user remaps the given input element.

## Declaration

```swift
func mappedPhysicalInputNames(forElementAlias elementAlias: String) -> Set<String>
```

## Parameters

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

## Return Value

Return Value The names of the physical input element to which the user remaps the given element.

## Discussion

Discussion For example, if the user maps a physical press of A button , B button, and X button to button B, then passing GCInputButtonB returns a set that contains GCInputButtonA, GCInputButtonB, and GCInputButtonX.

## See Also

### Remapping input elements

- [hasRemappedElements](gamecontroller/gcphysicalinputprofile/hasremappedelements.md)
- [mappedElementAlias(forPhysicalInputName:)](gamecontroller/gcphysicalinputprofile/mappedelementalias(forphysicalinputname:).md)
- [GCControllerUserCustomizationsDidChange](foundation/nsnotification/name-swift.struct/gccontrollerusercustomizationsdidchange.md)
