We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 069d6e8 commit c595c73Copy full SHA for c595c73
bevy-cookbook.md
@@ -155,8 +155,9 @@ to hook into the `winit` api as below. Note that this will cause events such as
155
`CursorMoved` to always trigger with the same position due to the position being
156
locked. However, `MouseMotion` events will still fire so the delta can be used.
157
158
+An example system to lock/unlock the mouse, triggered by a custom event:
159
+
160
```rust
-// An example system to lock/unlock the mouse, triggered by a custom event.
161
use bevy::{window::WindowId, winit::WinitWindows};
162
163
// To track if we want the cursor to be locked or unlocked.
0 commit comments