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

Allow usage without yaml file #1

Open
TotalKrill opened this issue Aug 4, 2022 · 1 comment
Open

Allow usage without yaml file #1

TotalKrill opened this issue Aug 4, 2022 · 1 comment

Comments

@TotalKrill
Copy link

I like the concept, many crates that are handling cameras, are using inputs that I cannot disable and whatnot, forcing me to copy-paste the code.

I would love if there were some way for these crate to specify what kind of controlling inputs and events they require other than implementing the key.justpressed() way that is currently the norm.

For this we need some kind of crate that links event, to a keybind, and that can also be changed during runtime.

@wanderrful
Copy link
Owner

wanderrful commented Aug 13, 2022

Thanks for posting!

So, you mean you'd like to see some kind of "namespace" for the actions and axes? Like:

keyboard:
  actions:
    Mouse1: SelectUnitUnderCursor

gamepad:
  actions:
    Button_X: SelectUnitUnderCursor

Or maybe if it were inverted, like...

actions:
  MoveForward:
    gamepad:
      - Button_X
      - Button_A
    keyboard:
      - Q
      - F5

I learned recently about a similar kind of use case for this crate, called kurinji (https://crates.io/crates/kurinji) and I wonder if, although it's more deprecated because of the older Bevy version, maybe their approach is better.

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

2 participants