-
Notifications
You must be signed in to change notification settings - Fork 120
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
Runtime disabling of specific input type tracking #478
Conversation
@alice-i-cecile This isn't related to #185, but could you take a look at the parts about |
cd48808
to
4160060
Compare
Okay, I definitely think this is a useful tool, and I really like the notion of having a way to keep track of which input streams we're subscribed to. However, I don't want to add more complexity/features to the code until #321 is solved. I think that this is helpful to shape that sort of design though. |
TrackingState
for specific input type tracking
I'm also in favor of splitting |
Blocked until the new architecture has been implemented |
TrackingState
for specific input type tracking
Closing: this will be easier to redo. |
Objective
Allow disabling of specific input type tracking.
This can be especially useful if users encounter conflicts with input handling from other crates not currently integrated yet.
Solution
Add
TrackingState
enum for always enabling, always disabling, or ignoring once for input type tracking.Add a new resource called
TrackingInputType
, which includes flags for enabling specific input type tracking.Furthermore, add run conditions that are active when the
TrackingInputType
is enabled for specific input types.Changelog
TrackingState
enumTrackingInputType
Resourceprelude
moduleprioritize_ui_input
andprioritize_egui_input
systems fromupdate_action_state
InputManagerPlugin
InputStreams
now takeOption
for gamepad values