Skip to content

Support non binary inputs #13

@Apostolique

Description

@Apostolique

Some work has been started with the static scroll and pointer API:

if (MouseCondition.Scrolled()) {
    someValue += MouseCondition.ScrollDelta;
}
if (MouseCondition.PointerMoved()) {
    someValue += MouseCondition.PointerDelta;
}

Perhaps it could be worth it to abstract this into a condition with an out parameter so that it can be used in a non static manner:

if (condition(out int delta)) {
    someValue += delta;
}
if (condition(out Vector2 delta)) {
    someValue += delta;
}

Or something similar.

Eventually, this could be used to map analog joystick values, triggers, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions