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

Mouse capture API #642

Closed
eliaspekkala opened this issue Oct 7, 2020 · 1 comment
Closed

Mouse capture API #642

eliaspekkala opened this issue Oct 7, 2020 · 1 comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible

Comments

@eliaspekkala
Copy link
Contributor

The pull request "Add mouse capture example" and the recipe "Grabbing the mouse" in the Bevy cookbook both illustrate how mouse capturing is done currently. It's done using the Winit API directly (though WinitWindows), which ties these Bevy apps to using Winit's backends.

Bevy should have a mouse capture API that lets us do the same thing, but on a higher level of abstraction that isn't tied directly to Winit.

In the short term, @cart is cool with adding more properties to the existing WindowDescriptor to unblock scenarios like mouse grabbing, but in the medium term one issue is that Bevy doesn't let you set window properties on demand like you can with Winit (see comment and issue #641).

@karroffel karroffel added C-Feature A new feature, making something new possible A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in labels Oct 7, 2020
@cart
Copy link
Member

cart commented Oct 16, 2020

Closed by #679

@cart cart closed this as completed Oct 16, 2020
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-Feature A new feature, making something new possible
Projects
None yet
Development

No branches or pull requests

3 participants