Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Confirm4Crit on January 07, 2014, 08:08:54 PM
-
On my main menu, if I start with something selected, my menu will cycle though choices just by moving the mouse. hovering over and clicking a button still works fine, but it flickers though choices as I move the mouse at all. Any suggestions?
-
I'm not sure I understand your question. What does UIButtonKeys have to do with a mouse? UIButtonKeys is for keyboard and controller navigation. If you're using UIButtonKeys you should keep the mouse input disabled. Are you trying to use both keyboard and mouse input at the same time?
-
Yes. I did want to be able to have it so the user can control the player with the mouse, or just pick up a USB controller and play, without having to hit a toggle in a settings menu or anything like that.
I'm having trouble detecting my controller in Unity, it doesn't pop up in GetJoystickNames, but my Console does come up with "Mad Catz Xbox 360 Controller" is plugged in, so something is working right.
I'm sure the best solution would be if my game picks up a controller, than just have startSelected work on a button, and toggle it if the mouse is moved, but I currently can't find a way to do that.
-
Mixing two types of input is bound to have some slightly undesirable behaviour when switching from one to the other. Two objects being highlighted, for example -- one from controller's selection, another from the mouse hover.
You can currently check what type of input you're getting via UICamera.currentScheme.
-
I'm okay with the awkwardness of two cursors. I disabled all my controller input, and I'm still having the issue. I'd like to be able have the user at least use keystrokes/mouse on menus w.o it being weird. Even looking at the buttonkeys.cs, I see a switch statement for the arrows, but nothing about a mouse. I also couldn't find anything in UI input for it.
I'm currently out til 4PM, but I'll try a few things and see if any of them work.
One thing I just noticed is I might have adjusted some of the InputSettings in "horizontal" and "vertical", which looks like is what's referenced a lot. I'll reset that and see if that fixes it (it probably will).
Edit: Yup,I'm just a derp. :D thanks for your patience