Input Device Manager - Auto switch not working for Joystick

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
random
Posts: 34
Joined: Thu May 09, 2024 10:48 pm

Input Device Manager - Auto switch not working for Joystick

Post 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 515 times
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
random
Posts: 34
Joined: Thu May 09, 2024 10:48 pm

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

Post by random »

I was using the new input system. Your solution worked perfectly, thanks so much!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply