Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
teohhanhui opened this issue Sep 19, 2024 · 1 comment
Labels
enhancement New feature or request example Something to do with an example

Comments

@teohhanhui
Copy link

teohhanhui commented Sep 19, 2024

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...

@teohhanhui teohhanhui added the enhancement New feature or request label Sep 19, 2024
@alice-i-cecile
Copy link
Contributor

Totally agree: we should at least demonstrate how to do this. "Relative to the player" is the primary method here.

@alice-i-cecile alice-i-cecile added the example Something to do with an example label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request example Something to do with an example
Projects
None yet
Development

No branches or pull requests

2 participants