Skip to content

Use bevy_eventlistener as the event dispatcher #45

@musjj

Description

@musjj

This will allow you to ergonomically deal with events on specific entities. For example:

commands.spawn((
    ButtonBundle::default(),
    Focusable::default(),
    On::<Focused>::run(focused),
    On::<Active>::run(active),
    On::<Prioritized>::run(prioritized),
    On::<Inert>::run(inert),
    On::<Blocked>::run(blocked),
));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions