Skip to content

FlxInput: Add Hold state/bool #3373

Open
@Lasercar

Description

Title. Why? Because Pressed and Just_Pressed return true at the same time it makes it impossible to only run or not run something if one of the keys of an action is already held down.

Modifying the behaviour of FlxInput to to make pressed only start returning after a frame might break some existing code, so add a new state called Hold that only returns true after the key's held for more than one frame?

I need this change in order to properly finish/fix this PR of mine:

FunkinCrew/Funkin#4145

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions