Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Remap buttons for a MFi controller

Remap buttons for a Made for iOS (MFi) controller using the Input System package.
Read time 1 minuteLast updated 24 days ago

Made for iOS (MFi) controllers offer out of the box input mappings, but you can set up custom mappings using the Unity Input System package.

Set up custom button bindings

To remap buttons for a MFi device:
  1. Create an Input Action Asset in your Unity project. For more information, refer to Input action assets.
  2. Double-click the Input Action Asset to open the Actions Editor.
  3. In the Actions Editor, create an Action for each button you want to map. For more information, refer to Input Actions Editor references.
  4. Create a Binding for each action.
  5. Select a binding and use Path in the Binding Properties panel to assign a specific button for the MFi device.
To map buttons for supported controllers, use the following binding information:

Controller Type

Path to bind button

All GamepadsGamepad > [Desired button]
iOS GamepadsGamepad > iOS Gamepad > [Desired button]
Specific iOS Gamepads. For example, a PlayStation DualSense controller.Gamepad > PlayStation Controller > iOS DualSense Gamepad > [Desired button]
After completing these steps, reference the Input Action Asset in your C# code. For more information, refer to Create actions in code.

Additional resources