summaryrefslogtreecommitdiff
path: root/engine/src
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src')
-rw-r--r--engine/src/input.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/src/input.rs b/engine/src/input.rs
index 78c8270..f64d93e 100644
--- a/engine/src/input.rs
+++ b/engine/src/input.rs
@@ -53,6 +53,7 @@ impl Keys
pub struct Cursor
{
pub position: Vec2<f64>,
+ pub has_moved: bool,
}
impl Cursor
@@ -106,5 +107,7 @@ fn initialize(keys: Single<Keys>, cursor: Single<Cursor>, window: Single<Window>
x: cursor_position.x,
y: cursor_position.y,
};
+
+ cursor.has_moved = true;
});
}