diff options
| author | HampusM <hampus@hampusmat.com> | 2026-06-28 00:09:06 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-06-30 18:24:47 +0200 |
| commit | 9df8a4d197e66accb389edb5a5c54117933f157e (patch) | |
| tree | 2d348fea32df9dd73ec6b961fae63e8ccb60899d /engine/src/windowing/mouse.rs | |
| parent | 4a5e3e612e8b597dd1734afefd01324b74fd99ab (diff) | |
feat(engine): add windowing DPI utilities
Diffstat (limited to 'engine/src/windowing/mouse.rs')
| -rw-r--r-- | engine/src/windowing/mouse.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/src/windowing/mouse.rs b/engine/src/windowing/mouse.rs index f4969ea..649036a 100644 --- a/engine/src/windowing/mouse.rs +++ b/engine/src/windowing/mouse.rs @@ -2,6 +2,7 @@ use std::collections::HashMap; use crate::ecs::Sole; use crate::vector::Vec2; +use crate::windowing::dpi::PhysicalPosition; #[derive(Debug, Default, Clone, Sole)] #[non_exhaustive] @@ -15,7 +16,7 @@ pub struct Mouse /// Coordinates in pixels relative to the top-left corner of the window. May have /// been affected by cursor acceleration - pub position: Vec2<f64>, + pub position: PhysicalPosition<f64>, } /// Mouse buttons. |
