I'm not sure if it's due to the frameRate (tried at 30 and 60 fps), but seems like my game loop (in EnterFrame) catches two presses and releases in a row even if I just press the controller buttons once.
What seems to fix it though, is changing the >= to > in the pressed() and released() ButtonControl's getters:
Example: updatedAt > ControllerInput.previous
Setup:
Compiled in FlashDevelop
FP12.0
- Attached 3 XBOX360 controllers (Afterglow brand).
I'm not sure if it's due to the frameRate (tried at 30 and 60 fps), but seems like my game loop (in EnterFrame) catches two presses and releases in a row even if I just press the controller buttons once.
What seems to fix it though, is changing the >= to > in the pressed() and released() ButtonControl's getters:
Example: updatedAt > ControllerInput.previous
Setup:
Compiled in FlashDevelop
FP12.0