TouchDown() not firing on Windows with touch/pen

Monkey Forums/Monkey Bug Reports/TouchDown() not firing on Windows with touch/pen

Raph(Posted 2013) [#1]
Here's a little sample code. When you start touch, you should get a circle, so a single tap should result in a circle.



I've tried this on a variety of platforms now:

iOS: a tap creates a circle
Android: a tap creates a circle
HTML5 Win7 with mouse: a click creates a circle
HTML5 Win8 with mouse: a click creates a circle
GLFW Win7 with mouse: a click creates a circle
GLFW Win8 with mouse: a click creates a circle
Win8 Metro with mouse: a click creates a circle
Win8 Metro with touch: a tap creates a circle
Win8 Metro with pen: a tap creates a circle

HTML5 Win7 with a tablet pen: no circle
HTML5 Win8 with tablet pen: no circle
HTML5 Win8 with touch: no circle
GLFW Win 7 with tablet pen: no circle
GLFW Win8 with tablet pen: no circle
GLFW Win8 with touch: no circle

However, in all these cases where it does not work, I can see the little circle effect that Windows draws for a touch event. I can also tap on icons on the desktop, etc.

It kind of looks like Windows isn't firing the TouchDown() or MouseDown() event until the touch moves a little?

If you change it to

		If TouchDown() or MouseDown() or MouseHit()


the circles will appear as expected (I haven't tested very platform and input with this change, but it does seem to be the case in Win8 HTML5 with touch, and Win8 GLFW with touch).

Obviously, I can code around this by using MouseHit() everywhere I currently detect taps with a touch monitor class, but it seems like TouchDown ought to be more consistent? Might be an OS thing though, I dunno.

Tested on 70g and 71c.