From 9df8a4d197e66accb389edb5a5c54117933f157e Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 28 Jun 2026 00:09:06 +0200 Subject: feat(engine): add windowing DPI utilities --- engine/src/windowing/mouse.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/src/windowing/mouse.rs') 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, + pub position: PhysicalPosition, } /// Mouse buttons. -- cgit v1.2.3-18-g5258