Simple system to rebind buttons with new input system.
- In Package Manager install the lastest version of Input System. (Used 1.3.0v)
- In Player Settings->Other Settings->Active Input Handling; Change 'Input Manager (old) or Input System Package (new)' to 'Both'.
- Open and play the scene example in Scenes/Rebind System Example.
Note ¹: To work properly when developing your own Canvas interface, locate your EventSystem and check that the 'Standalone Input Module' has been updated to 'Input System UI Input Module'. To do this, click on 'Replace with InputSystemUIInputModule' generating the result below.
[EventSystem] Old input system:
[EventSystem] New input system:
Note 2: In 'Input System UI Input Module'->Submit it is 'None' as the joystick/southButton is recognized as UI/Submit, automatically applying the same input during rebind. This problem will not occur depending on how you work with your Canvas/Menu System.
In the scene example 'Scenes/Rebind System Example', localize in Hiearchy Canvas->ControlsPanel->PSPanel->Rebind Button.
Debugger to visualize the action and controller to remap. Example according to PlayerInput in that package:
If Selected Binding = 0, the 'path' will be for the 'Keyboard' type.
If Selected Binding = 1, the 'path' will be for the 'Gamepad' type.
If Selected Binding = 2, the 'path' will be for type 'PS4'.
If Selected Binding = 3, the 'path' will be for type 'Xbox'.