Page 1 of 1

Input Device Manager - Auto switch not working for Joystick

Posted: Sat Jul 13, 2024 10:35 am
by random
Hello!

On my Input Device Manager, it seems fine at detecting mouse input, but it doesn't ever to seem to switch back to Joystick/Gamepad after switching to Mouse input. Is there something I can do to fix it?


Screenshot 2024-07-13 103426.png
Screenshot 2024-07-13 103426.png (72.08 KiB) Viewed 518 times

Re: Input Device Manager - Auto switch not working for Joystick

Posted: Sat Jul 13, 2024 11:58 am
by Tony Li
Hi,

Are there any errors or warnings in the Console window?

What input solution are you using?

If you're using Unity's built-in input manager, the Input Device Manager's Input Device should switch to Joystick if you press joystick buttons 0, 1, 2, or 7. The axes named "Horizontal" and "Vertical" are typically mapped to joystick axes and keyboard (e.g., WASD), so I recommend defining new axes that are only mapped to the joystick and using them in the Joystick Axes To Check instead.

If you're using Unity's Input System package, it can't read joystick key codes. Register input actions with the Input Device Manager (as explained in the Input_Device_Manager_Manual.pdf in your project or the Input System tutorial) and specify them in the Joystick Buttons To Check and/or Joystick Axes To Check.

If you're using Rewired, it works the same as the built-in input manager.

Re: Input Device Manager - Auto switch not working for Joystick

Posted: Sat Jul 13, 2024 12:29 pm
by random
I was using the new input system. Your solution worked perfectly, thanks so much!

Re: Input Device Manager - Auto switch not working for Joystick

Posted: Sat Jul 13, 2024 1:04 pm
by Tony Li
Glad to help!