Skip to content

Add local cursor position to Interaction #7079

@SpecificProtagonist

Description

@SpecificProtagonist

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-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