Skip to content

Add FlxG.touches.pressed and FlxG.touches.anyPressed #2211

@Geokureli

Description

@Geokureli

I was under the impression that all touches in FlxG.touches.list were in a justPressed, pressed and justReleased state, but apparently they exist in a released state before they are removed. This threw me for a loop when debugging some code. Given that we have FlxG.touches.justStarted maybe we should have lists for all other states.

Additionally, I think FlxTouchManager could benefit from boolean flags for whether any touch is in the target state. such as: FlxG.touches.anyJustPressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions