mappedElementAlias(forPhysicalInputName:)
Returns the name of the input element to which the user remaps the given physical element.
Declaration
func mappedElementAlias(forPhysicalInputName inputName: String) -> StringParameters
- inputName:
The name of the physical element. For possible values, see 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 to this method returns GCInputButtonB.