Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace inputs.ts with controls.ts #39

Open
patreeceeo opened this issue Jul 11, 2024 · 0 comments
Open

replace inputs.ts with controls.ts #39

patreeceeo opened this issue Jul 11, 2024 · 0 comments

Comments

@patreeceeo
Copy link
Owner

patreeceeo commented Jul 11, 2024

First, create a class that:

  • Defines an ordered list of application modes in which inputs have certain meanings. Each mode:
    • Can test app state for whether it should be active. The first mode that passes is considered active.
    • Has a user-oriented description.
    • Has a mapping of inputs to "Controls"

A Control:

  • Has a user-oriented description
  • Has a function that is executed against app state to implement its behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant