Skip to content

Add system to quit games to default plugins #2110

Closed
@alice-i-cecile

Description

What problem does this solve or what need does it fill?

A description of why this particular feature should be added.

What solution would you like?

A system should be added to a plugin within DefaultPlugins that listens to keyboard inputs and creates an AppExit event when it notices CTRL+Q or CTRL+C being called.

What alternative(s) have you considered?

Users can manually implement this, but a) it's common b) it reduces new user friction.

We could also enable this behavior on Esc, but that's commonly used for menus and it would be nice to not have to turn this off until you're near a finished game.

Additional context

Raised in #2109.

Metadata

Assignees

No one assigned

    Labels

    C-ExamplesAn addition or correction to our examplesC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions