Skip to content

"pressed" and "released" triggered 2 frames in a row. #6

Description

@chamberlainpi

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions