Skip to content

Commit 282e6ec

Browse files
committed
Add MouseEvent::pointer_locked
1 parent aaca230 commit 282e6ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lighthouse-protocol/src/input/mouse_event.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ pub struct MouseEvent {
1212
pub source: EventSource,
1313
/// Whether the button was pressed.
1414
pub down: bool,
15+
/// Whether the mouse pointer was locked (e.g. to the frontend's canvas)
16+
pub pointer_locked: bool,
1517
/// The mouse button.
1618
pub button: MouseButton,
1719
/// The mouse position on the lighthouse grid.

0 commit comments

Comments
 (0)