FlixelCommunity / Flixel-Power-Tools

The Flixel Power Tools are a package of classes designed to provide extra functionality to your Flixel games. Originally created by Richard Davey (Photon Storm), this is the Flixel Community fork of the library, striving to keep the library living and up to date with the latest version of Flixel.
http://www.photonstorm.com/flixel-power-tools
Other
8 stars 3 forks source link

[CLOSED] Fix FxControl update logic #17

Closed FlixelCommunityBot closed 10 years ago

FlixelCommunityBot commented 10 years ago

Issue by ooflorent from Sunday Jul 07, 2013 at 06:53 GMT Originally opened as https://github.com/photonstorm/Flixel-Power-Tools/pull/17


org.flixel.system.Input is updating before FlxControl has the opportunity to see the JUST_DOWN state of the key. When FlxControl runs on draw() the key state has already changed to PRESSED.


ooflorent included the following code: https://github.com/photonstorm/Flixel-Power-Tools/pull/17/commits