Open
Description
What problem does this solve or what need does it fill?
Games commonly display different prompts based on the input mode the player is using.
This information is also useful for analytics (to inform development priorities).
What solution would you like?
Define an InputModality
enum, stored in a resource.
In a PreUpdate
system (as part of InputPlugin
) each frame, listen to touch, gamepad, KBM etc events, and set the modality based on what is being used.
Maybe make this system toggleable?
What alternative(s) have you considered?
Reimplement this in every game that needs this, or reimplement this in a downstream crate.
Additional context
Previously discussed in projectharmonia/bevy_enhanced_input#22, but fundamentally this is bevy_input's problem.