Skip to content

Switch/toggle input type #3811

@vadosnaprimer

Description

@vadosnaprimer

We have bool buttons and analog, but they both reset their state to default (false for buttons and mid for analog) after you've changed them once.

For certain things we need a way to switch between on/off or a different number of variations, in a way that makes the last changed state persist until it's changed again.

#2048 contains a lot of context, and #3757 is an example when it's needed.

Yoshi suggested this

We might be able to add "is sticky" semantics to AxisSpec, or maybe Controller needs to change.

and I think the former is a good idea, but I wonder if there are cases when analog numbers would not be sufficient for such a switch, because how would a user know what the values mean?

Metadata

Metadata

Assignees

No one assigned

    Labels

    App: EmuHawkRelating to EmuHawk frontendMetaRelating to code organisation or to things that aren't codeOpen to design proposals onlyWe're not ready to add this yet, but technical discussion of how it could be added is welcome.Request: Feature/EnhancementFor feature requests or possible improvements

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions