Input drop during maximum controller axis

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
rykaan
Posts: 75
Joined: Tue Feb 11, 2020 6:22 am

Input drop during maximum controller axis

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

Re: Input drop during maximum controller axis

Post 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.
User avatar
rykaan
Posts: 75
Joined: Tue Feb 11, 2020 6:22 am

Re: Input drop during maximum controller axis

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

Re: Input drop during maximum controller axis

Post 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.
Post Reply