Touch event support under Windows

Most of the applications I develop are targetting Windows and use touchscreens or touchfoils for input.

Using OpenFL, I’ve not been able to get touch working under Windows, fully.

I’m able to register a TOUCH_BEGIN event, however the stage coordinates I’m receiving from the event are always 0, 0.

A standard MOUSE_DOWN event on the same object registers the correct stage coordinates.

Example code:

class Main extends Sprite
{	
	public function new()
	{
		super();
		
		var bitmap:Bitmap = new Bitmap(new BitmapData(stage.stageWidth, stage.stageHeight, false, 0xFF0000));
		addChild(bitmap);
		
		
		stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);	
		stage.addEventListener(TouchEvent.TOUCH_BEGIN, touchHandler);
	}
	
	private function touchHandler(e:TouchEvent):Void 
	{
		trace("Touch begin", e.stageX, e.stageY);
	}
	
	private function mouseHandler(e:MouseEvent):Void 
	{
		trace("Mouse down", e.stageX, e.stageY);
	}
}

Output:

Main.hx:42: Touch begin,0,0
Main.hx:47: Mouse down,236,553

To clarify, I’m trying to get HaxeFlixel working with touch, and I suspect the touch issue may possibly stem from OpenFL?

A branch of this issue I created on the HaxeFlixel forum:
https://groups.google.com/forum/embed/?place=forum/haxeflixel&showsearch=true&showpopout=true&showtabs=true&parenturl=http%3A%2F%2Fhaxeflixel.com%2Fforum%2F#!topic/haxeflixel/JfyXaDvDRuQ