Skip to content

Missing user story for CursorMoved / mouse position (as opposed to motion) #634

@teohhanhui

Description

@teohhanhui

What problem does this solve?

Something like https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/mouse_to_tile.rs

What solution would you like?

An example that demonstrates how the use case of tracking the cursor's position in the window should be handled.

[Optional] How could this be implemented?

Needs an example... There's mention of a certain mouse_position example here, but no such example exists:

//! the `default_controls`. `mouse_position`, and `action_state_resource` examples.

(EDIT: I see it was removed in #581)

Ideally it should also show things like mapping to world position and more, otherwise the story would be incomplete.

[Optional] What alternatives have you considered?

Use CursorMoved? But it still would be nice to have an example to show how it'd integrate with leafwing-input-manager.

Related work

No idea...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexampleSomething to do with an example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions