How to let user change input device on runtime

Hello,

Using the new input system I would like to show a menu that shows all connected devices (in my case keyboard, mouse & gamepad) and let him exclusively pick one of those. What I have access to is the instance of the InputDevice he selects as well as the PlayerInput component that is attached to the character. How do I go from there? I’ve been trying varying things with varying degrees of success. I would assume this to be a single line of code (e.g. myPlayerInput.SetDevice(selectedDevice) ), but I don’t seem to get it.

Cheers

edit: I know how to iterate all devices. I just can’t seem to make it bulletproof that the selected device is which controls the player after the user makes his pick.

1 Like

Bumping this just once