Skip to content

Commit 9c1d508

Browse files
committed
Add MouseEvent::movement
1 parent bde4c8f commit 9c1d508

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lighthouse-protocol/src/input/mouse_event.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ pub struct MouseEvent {
1212
pub source: EventSource,
1313
/// The mouse button.
1414
pub button: MouseButton,
15-
/// The mouse position.
15+
/// The mouse position on the lighthouse grid.
1616
pub pos: Pos<f64>,
17+
/// The mouse movement on the lighthouse grid.
18+
pub movement: Pos<f64>,
1719
}

0 commit comments

Comments
 (0)