Can't use New Input System input after mousing over screen

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
EffieArtoria
Posts: 9
Joined: Mon Mar 08, 2021 6:45 pm

Can't use New Input System input after mousing over screen

Post by EffieArtoria »

Hi. I'm a bit new to this. I'm using the New Input System with Unity, and the Dialogue System. If I am running my game, normally, I have no trouble navigating options or continuing using the keyboard or the controller with my New Input System setup, but if I happen to mouse over the screen at any point then I lose the ability to interact with the Dialogue System with anything else. I can click options with the mouse, but I can't use controller or keyboard. It's the same even after I move my mouse off the screen. The only thing that fixes it is stopping and restarting.

I have "New Input System" ticked in the welcome window. I have an Input Device Manager attached to my Dialogue Manager with "Key Buttons to Check" set to the appropriate elements from my New Input System.

Any idea what I'm doing wrong? Feels like I've made a rookie mistake.
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't use New Input System input after mousing over screen

Post by Tony Li »

Hi,

Inspect the Dialogue Manager's Input Device Manager component and tick Always Auto Focus. When the Input Device Manager detects that you're using the mouse, it no longer focuses UI buttons for keyboard/joystick navigation. (Unless you've ticked Always auto Focus.)

Also, check for any error or warnings in the Console window. It's possible to configure the Input Device Manager to switch back to keyboard or joystick mode by detecting when specific keys or joystick buttons/axes are pressed. But if you've configured it to read an input that isn't registered with the Dialogue System, it will report an error. See the New Input System Integration Tutorial for info on registering inputs.
EffieArtoria
Posts: 9
Joined: Mon Mar 08, 2021 6:45 pm

Re: Can't use New Input System input after mousing over screen

Post by EffieArtoria »

Thank you so much, that was it!
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't use New Input System input after mousing over screen

Post by Tony Li »

Glad to help!
Post Reply