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

Config page for input system #56

Open
3 tasks
IceSentry opened this issue Feb 7, 2020 · 1 comment
Open
3 tasks

Config page for input system #56

IceSentry opened this issue Feb 7, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@IceSentry
Copy link
Collaborator

The new input system is configurable in code, but a user can't change the code.

  • Create input config page
  • Represent the current config
  • Modify the current config
@IceSentry IceSentry changed the title Configurable input system Config page for input system Apr 17, 2021
@IceSentry
Copy link
Collaborator Author

The actions are currently defined in https://github.com/clubcapra/capra_web_ui/blob/master/src/renderer/utils/InputSystem/index.ts

Consider maybe putting this somewhere that isn't the utils folder.

The actions will still need to be defined in the code by a programmer, but the bindings could be loaded from a redux store indexed by the action name as a key. Once this store is in place it should be pretty easy to create a config page to show and modify the store. It could be a table similar to what is done for the cameras and the graphs.

Each row should have the action name in a dropdown and a dropdown for the binding type. Once the binding type is selected. Choose the best way to display each type. For example, a keyboard binding could simply take a string as an input with a checkbox for the onKeyDown while a gamepad button binding could use a dropdown with all the buttons listed.

@IceSentry IceSentry added the good first issue Good for newcomers label Jul 18, 2021
@IceSentry IceSentry mentioned this issue Jul 18, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant