Contents

mappedElementAlias(forPhysicalInputName:)

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

Declaration

func mappedElementAlias(forPhysicalInputName inputName: String) -> String

Parameters

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.

See Also

Remapping input elements