Detecting if left mouse was click non existent.

36 views
Skip to first unread message

Matt

unread,
Jun 26, 2015, 9:17:27 AM6/26/15
to haxef...@googlegroups.com
I noticed something very insane / crazy. I was about to code something that gets triggerd on left mouse click and i looked trough all the function FlxG.mouse.* offers and there is just
middle or right mouse button detections but not for left. The "justPressed" and "pressed" claims that its for left click but it is a lie, what it really does is just check if there is any button input on mouse. Does anyone know how to fix this.

Gama11

unread,
Jun 26, 2015, 10:33:41 AM6/26/15
to haxef...@googlegroups.com, mate...@gmail.com
That's not what pressed does, or is at least supposed to do (it definitely checks for the left mouse button event). It looks like this might be an OpenFL bug, possibly related to this issue.

Btw, this works properly on flash.

Matt

unread,
Jun 27, 2015, 9:12:13 AM6/27/15
to haxef...@googlegroups.com, mate...@gmail.com
How hard would it be to manualy fix this ?  I checked in the openFL source code and in mouse input class there was barley anything inside.

Gama11

unread,
Jun 27, 2015, 9:23:04 AM6/27/15
to haxef...@googlegroups.com, mate...@gmail.com
Th actual implementation if probably in Lime.

Matt

unread,
Jun 27, 2015, 4:49:09 PM6/27/15
to haxef...@googlegroups.com
I looked in haxe.ui.mouse and there are more function but i dont understand what exactly is going on here. Do i have to make the function or fix them ? I dont see any functions for mouse clicks inside.
Reply all
Reply to author
Forward
0 new messages