First of all, Hello and Happy New Year to everyone!
Then, on to the problem
I have a problem with touch input on Android. I'm using input in my game normally when UI is not shown - in this case I don't call Update and Draw methods on uiRoot. If menu is enabled (by three fingers touch), I draw the menu in the Draw(), and call this in Update, so the menu works:
// update UI
I also make extra effort to make sure, that showing the menu (and updating it for the first time) happens after the user gets all fingers out of the device. So he first needs to touch screen with three fingers, then remove all of them, and then the menu is enabled.
But still, very often after the menu is shown, EmptyKeys seems to be getting some input although the screen is not touched. It looks like it collected all the touch events which happened when the menu was not shown (user was gaming), and now executes them, but instead of "clicking" elements it focuses them. So for several seconds it changes focus of different elements and the menu is not responsive.
Do I need to clear some input buffer before updating the menu, or am I doing something else in the wrong way?