Skip to content

Matching against patterns for inputs #18

@weakman54

Description

@weakman54

I would like to be able to match against patterns, atm, I have four combo inputs, and would like to check if any of them is pressed (to trigger the combo). right now this requires me to check each in turn, in one large or condition. being able to do something like

if input:pressed("combo%a*") then

would greatly help this.

I also have a use case where I just want to check against any button being pressed/released (I have some events that only trigger after a short amount of time of an input being held, which is tracked by a simple timer variable. I want to only increase this variable while any button is held, and reset each time a button is released).

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