From f8b7c0cfc73eaeb7ef8dfb3151f93879c97b220a Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 25 May 2026 19:49:15 +0200 Subject: fix(engine): prevent dropped cursor motion input on Windows --- engine/src/data_types/vector.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engine/src/data_types') diff --git a/engine/src/data_types/vector.rs b/engine/src/data_types/vector.rs index 933ca51..77173d6 100644 --- a/engine/src/data_types/vector.rs +++ b/engine/src/data_types/vector.rs @@ -113,6 +113,14 @@ impl From<[Value; 2]> for Vec2 } } +impl From<(Value, Value)> for Vec2 +{ + fn from((x, y): (Value, Value)) -> Self + { + Self { x, y } + } +} + impl From> for [Value; 2] { fn from(vec: Vec2) -> Self -- cgit v1.2.3-18-g5258