diff options
| author | HampusM <hampus@hampusmat.com> | 2026-07-12 16:56:31 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-07-12 16:56:31 +0200 |
| commit | a8e786d9bf0419eb4385bb09beb86938826864d0 (patch) | |
| tree | 3384e231aedd62376d0a8d12cc1d35e6b49a4c4c /engine/src/windowing | |
| parent | 453247306d66f008e12961323d4beea8c219deca (diff) | |
feat(engine): add scroll delta to Mouse
Diffstat (limited to 'engine/src/windowing')
| -rw-r--r-- | engine/src/windowing/mouse.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engine/src/windowing/mouse.rs b/engine/src/windowing/mouse.rs index 649036a..91719e2 100644 --- a/engine/src/windowing/mouse.rs +++ b/engine/src/windowing/mouse.rs @@ -17,6 +17,14 @@ pub struct Mouse /// Coordinates in pixels relative to the top-left corner of the window. May have /// been affected by cursor acceleration pub position: PhysicalPosition<f64>, + + pub scroll_delta: ScrollDelta, +} + +#[derive(Debug, Clone, Default)] +pub struct ScrollDelta { + pub vert_lines: f64, + pub hor_lines: f64, } /// Mouse buttons. |
