Skip to content

[bevy_ui][focus] distinguish mouse buttons #1239

@RostMyr

Description

@RostMyr

What problem does this solve or what need does it fill?
ui_focus_system system currently handles only left button clicks/touches. It would be nice to be able to handle right button clicks too.

What solution would you like?
Well, probably Interaction::Clicked could be just replaced with Interaction::Clicked(MouseButton) or with Interaction::Clicked(Option<MouseButton>) to handle touches with Option::None 🤷🏻 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreA-UIGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions