Any way to disable mouse navigation on UI Buttons?

I did find a few threads on this, however they were a bit old, and slightly over my head. Has unity implemented a way now to disable click events, and navigation on UI buttons? I intend for the game I am creating to be a Keyboard or gamepad affair, and the mouse unfortunately SEEMS to be conflicting with this design, or, and this is most likely the case, I simply have no idea what I am doing and I am just winging it LOL. Thanks again all.

I think I posted this in the wrong section LOL. I meant to put this in UI Systems. My mistake. Should I repost or should a Mod move this?

What does this mean though? If the mouse isn’t being used then it shouldn’t affect anything.

Ah yes, sorry. So again, bear with my poor understanding of things here, but what SEEMS to be happening is that if the cursor hovers over the button, it overrides what the keyboard navigation is telling it to do. Now for me, as the designer, this is easy to work around, as I know the issue. If I were to give the game to the player without this resolved, it would be confusing.

So its a bit difficult to capture properly, but basically it allows what appears to be two “Action Panels” to be open and one to seem to have a selection appearing, while in actuality the true selection is the smaller “action panel”.

I’d have to test, but I feel like that should only be the case if there’s active input from the mouse. If the mouse is not being used, it should be ignored and the last device to provide input should take precedence.

Is your mouse potentially providing constant, noise input?

I don’t think it is. I will have to dig a bit deeper into my UI Setup, but IIRC (and I have been working on this a while now), when I set up the UI system, I made it to where when the button is “hovered over” it would automatically open. This seemed to work for both keys and mouse, which at the time I was happy with. If disabling the mouse outright is not an option, then I should think the next line of action would be to correct however I managed to get the buttons to open on hover and find a better way so it only responds to key navigation.

Edit: Upon reflection I suppose I am looking for the “Lazy way” to fix the problem :smile:. But if it does not exist, I am confident I can find a way to get what I need done.