Skip to content

Trigger some type of ButtonEvent on but input #17522

Open
@spvky

Description

@spvky

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 well

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-FeatureA new feature, making something new possibleD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions