Trigger some type of ButtonEvent
on but input
#17522
Labels
A-Input
Player input via keyboard, mouse, gamepad, and more
C-Feature
A new feature, making something new possible
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
What problem does this solve or what need does it fill?
This could just be a random pattern that's been on my mind, but with the inclusion of observer systems I've found they offer huge ergonomics win for a lot of different pieces of game logic and I wonder if it would be useful/desirable to have bevy trigger some sort of
ButtonInputEvent<T>
for things like keystrokes, mouse clicks, game pad button presses etc.What solution would you like?
A simple, first class event that is triggered by bevy in response to user input
What alternative(s) have you considered?
This could fairly easily be done on an as need basis for anyone who desires this, I'm more gauging interest on if this would be worth adding?
p.s. I am not privy to any performance overhead that
Trigger
events that are not picked up have, so if It would be a disastrous feature to add that would be good to know as wellThe text was updated successfully, but these errors were encountered: