Version: Unity 6.6 (6000.6)
Language : English
Input devices on tvOS
Debugging your tvOS application

Remap buttons for a MFi controller

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 Gamepads Gamepad > [Desired button]
iOS Gamepads Gamepad > 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

Input devices on tvOS
Debugging your tvOS application
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961