-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
What problem does this solve or what need does it fill?
Throughout the bevy_ui_widgets codebase, we have convenient baked-in interactions, like updating a checkbox in response to Enter if it's focused. See checkbox_on_key_input for an example of this.
This should work with gamepads too! Bevy is a game engine, and this is nice for accessibility in other apps too.
What solution would you like?
We should also listen to Gamepad::South from any gamepad in the same way.
This is common enough that I would ideally like to abstract this into an intermediate event.
What alternative(s) have you considered?
Simply implementing this directly is fine, but this is a common pattern that deserves a bit more encapsulation to make it easier to refactor and use in end user widgets.
Additional context
Related to #435, but we shouldn't block on that. If sane, non-configurable defaults are good enough for keyboard, they're good enough for gamepad.