- Home /
Question by
toby_flint · Oct 14, 2016 at 10:23 PM ·
androiduimobilebuttonsbuttonstates
How to handle button highlighted state on Android with touch/mouse/controller?
Hey guys,
I'm trying to get touch/mouse/controller input to all play nicely with each other, but I've been struggling to overcome this by-design issue with how touch is handled on Android.
For mouse input, I need the buttons to highlight when the mouse hovers over them. For controller input, I need the buttons to highlight when the player navigates between them with the DPad. But for touch input, I need the buttons to not highlight, as this creates great confusion for players, especially when swapping buttons or scenes as described here.
What is the correct way to set up buttons with a highlighted state that handle all three forms of input?
Comment