Page 1 of 1

Input drop during maximum controller axis

Posted: Mon Mar 30, 2020 6:34 am
by rykaan
Hi Tony,

Do you know of any reason the Dialogue System wouldn't detect inputs while a controller axis is held at maximum? The Submit input won't trigger while my controller left joystick axis is at maximum in any direction. This is regardless of the Submit being entered from two different buttons on the controller or from pressing space on the keyboard.

The conversation triggers on interacting with an item, pauses the game and the player just needs to press submit after the conversation tells you what item they grabbed. There isn't a whole lot more to the interaction so I'm having trouble paring it down. Soon as the controller axis isn't maximum in any direction the submit buttons work fine.

Edit: Releasing the axis then maxing it out again causes the issue, so it's not just being triggered from entering the conversation with a held direction.

Just wondering what could be getting in the way.
Cheers,
Rob

Re: Input drop during maximum controller axis

Posted: Mon Mar 30, 2020 9:00 am
by Tony Li
Hi Rob,

That's a new one to me. Are you using standard Unity Input, or the new Input System preview package, or a third party input manager such as Rewired?

Open an Inspector view on the EventSystem GameObject. At runtime, the EventSystem will report what Unity UI element currently has focus (i.e., is "selected").

If it's focusing the subtitle panel's continue button and then immediately losing focus when you max out of the axis, inspect the continue button. Change the Navigation dropdown to None. This will prevent the input axis from navigating away from the continue button.

Re: Input drop during maximum controller axis

Posted: Mon Mar 30, 2020 10:14 am
by rykaan
Nice one!

The event Manger showed the selected gameObject switching from the continue button to the scroll bar etc at higher axis angles. Disabling navigation sorted that out. I will have to think about how the player will scroll up through text later on but I can get to that later.

Cheers for the quick solution!
Rob

Re: Input drop during maximum controller axis

Posted: Mon Mar 30, 2020 1:37 pm
by Tony Li
Glad to help!

You might need to write a separate script that listens for up/down inputs and manually moves the scrollbar.