summaryrefslogtreecommitdiff
path: root/engine/src/data_types
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-05-25 19:49:15 +0200
committerHampusM <hampus@hampusmat.com>2026-05-25 19:49:15 +0200
commitf8b7c0cfc73eaeb7ef8dfb3151f93879c97b220a (patch)
tree5ff078443f5d64e4f99fd0487b3a2e72ef961540 /engine/src/data_types
parent8a41f5aeb3ac143d731928d1c343cd9338190f0a (diff)
fix(engine): prevent dropped cursor motion input on Windows
Diffstat (limited to 'engine/src/data_types')
-rw-r--r--engine/src/data_types/vector.rs8
1 files changed, 8 insertions, 0 deletions
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<Value> From<[Value; 2]> for Vec2<Value>
}
}
+impl<Value> From<(Value, Value)> for Vec2<Value>
+{
+ fn from((x, y): (Value, Value)) -> Self
+ {
+ Self { x, y }
+ }
+}
+
impl<Value> From<Vec2<Value>> for [Value; 2]
{
fn from(vec: Vec2<Value>) -> Self