-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[bevy_ui][focus] distinguish mouse buttons #1239
Copy link
Copy link
Closed
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreA-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possibleA new feature, making something new possible
Description
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 🤷🏻 .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreA-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possibleA new feature, making something new possible