here is a "theoretical example" for a better understand, highlighting the issue. I stay with 'windows' as that's my kung fu but don't mind it. Could be linux or mac too :)
Added extra mouse pointer to windows or only Haxe can figure out there are more mice, doesn't matter.
For windows desktop implementation (which looks a bit pointless, though) and for a better understand see
https://www.dicolab.com/Let's say I want to write an application in Haxe, let's say with using openFL library (doesn't matter, in fact).
I want to add event listener for mouse actions so what I do? This:
addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
You see? I'm stuck already. What I should be able to do is the following:
var foo = getArrayOfMice(); //a silly yet powerful call :)
if (foo.count != 2) {
PopError("Sorry dude, this is a dual wield game. Install exactly two mice!");
BlowUpEverythingAndSailToTheSunset();
return;
} else {
mouseA = foo.mice[0];
mouseB = foo.mice[1];
}
addEventListener(mouseA.MouseEvent.MOUSE_MOVE, stage_onRightHandMouseMove);
addEventListener(mouseB.MouseEvent.MOUSE_MOVE, stage_onLeftHandMouseMove);
Could be I don't see the "big picture" and the above is impossible but this is exactly what I'd like to know - is there any way to do this in/with Haxe?
Thank you again and sorry if I was not clear at the first time ;)