Page 1 of 1

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

Posted: Mon Aug 16, 2021 2:01 pm
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.

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

Posted: Mon Aug 16, 2021 3:15 pm
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.

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

Posted: Tue Aug 17, 2021 12:50 pm
by EffieArtoria
Thank you so much, that was it!

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

Posted: Tue Aug 17, 2021 1:43 pm
by Tony Li
Glad to help!