[dev] FlxButton broken after update

22 views
Skip to first unread message

Extreme Alex

unread,
Jan 9, 2016, 5:05:39 PM1/9/16
to haxef...@googlegroups.com
Hi!

After the last update of dev branch FlxButton no longer handle any events.
Hopefully fixes will not take a lot of time.

Thanks!

PS. I looked a list of current fixes on Github - here is the cause "FlxAnalog: ignore mouse input with touches enabled, closes #1672"
As for me, this is a very controversial decision because it would change all the code associated with the handle of click events. Even in a mobile game with touch control the buttons still only the buttons - with completely normal way to manage them by onDown etc.
But maybe I don't know something important, in this case, the topic can be closed :)

SARFEX

unread,
Jan 9, 2016, 5:17:36 PM1/9/16
to haxef...@googlegroups.com
Same.
I don't know what happend, but i know how to fix :)

Uncomment/set this lines in Project.xml in HAXEDEFINES part
Be careful you will get null errors if you don't use conditionals in your game

<haxedef name="FLX_NO_MOUSE" if="mobile" />
<haxedef name="FLX_NO_KEYBOARD" if="mobile" />
<haxedef name="FLX_NO_TOUCH" if="desktop || flash" />


воскресенье, 10 января 2016 г., 1:05:39 UTC+3 пользователь Extreme Alex написал:

Extreme Alex

unread,
Jan 9, 2016, 5:27:55 PM1/9/16
to HaxeFlixel
Yeah, thanks :)

After I read a list of the current changes on Github, I figured out what was wrong.

Reply all
Reply to author
Forward
0 new messages