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

Print errors when user forgets to .add_plugins(InputManagerPlugin::<XyzAction>::default()) #560

Open
atlv24 opened this issue Jul 14, 2024 · 0 comments
Labels
usability Reduce user friction

Comments

@atlv24
Copy link

atlv24 commented Jul 14, 2024

Which feature is frustrating to use or confusing?

I often forget to .add_plugins(InputManagerPlugin::<XyzAction>::default()) and have everything else set up properly, there's an entity with InputManagerBundle and InputMap set up and I'm reading actions from a registered system, but the actions never happen because the plugin wasn't added.

Expectation

We can detect if actions are being read on an ActionState that has not been ticked and print errors. It should be rather simple to do this too, just have a flag "has plugin" default to false, and have the plugin set it to true. We might want this to compile out in release if perf is a concern.

@atlv24 atlv24 added the usability Reduce user friction label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Reduce user friction
Projects
None yet
Development

No branches or pull requests

1 participant