-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add local cursor position to Interaction #7079
Copy link
Copy link
Closed
Labels
A-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 possibleD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Description
What problem does this solve or what need does it fill?
When handling input for custom widgets, Interaction only provide clicked/hovered/none, but no info where the widget was clicked.
What solution would you like?
Provide the cursor position relative to the widget in Interaction::Clicked/::Hovered.
What alternative(s) have you considered?
Keep status quo & calculate it manually when checking interactions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-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 possibleD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy