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

Add example for grabbing the mouse #4094

Closed
alice-i-cecile opened this issue Mar 4, 2022 · 2 comments
Closed

Add example for grabbing the mouse #4094

alice-i-cecile opened this issue Mar 4, 2022 · 2 comments
Labels
A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy

Comments

@alice-i-cecile
Copy link
Member

How can Bevy's documentation be improved?

Demonstrate [how to grab the mouse / lock the cursor] in a small example.

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy C-Examples An addition or correction to our examples A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in labels Mar 4, 2022
@emersonmx
Copy link
Contributor

Hello 👋🏻

Lately I've been creating examples of Bevy's features as a study. And one of the examples that was in my backlog was about grabbing the cursor.
https://github.com/emersonmx/sandbox/blob/main/rust/bevy/simple_mouse_grab/src/main.rs

If it works for this issue, I can open a PR with the example I made.

@alice-i-cecile
Copy link
Member Author

@emersonmx that looks great! Please open that PR and link this issue :)

@bors bors bot closed this as completed in 6ce8e50 Mar 8, 2022
aevyrie pushed a commit to aevyrie/bevy that referenced this issue Jun 7, 2022
ItsDoot pushed a commit to ItsDoot/bevy that referenced this issue Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants