summaryrefslogtreecommitdiff
path: root/engine/src/window.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-10-27 15:06:49 +0100
committerHampusM <hampus@hampusmat.com>2024-10-27 15:06:49 +0100
commitbfd8f31854b660a9ba82e0af303280c74adfd9d4 (patch)
tree61bedbde42d01405a2620a7dc4fdc9853e252f7b /engine/src/window.rs
parentdcc1475a58acc83aa180f7d202bf069e214980ee (diff)
feat(engine): add Keys function to get previous key state
Diffstat (limited to 'engine/src/window.rs')
-rw-r--r--engine/src/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/window.rs b/engine/src/window.rs
index b308539..ccc1b8d 100644
--- a/engine/src/window.rs
+++ b/engine/src/window.rs
@@ -8,7 +8,7 @@ use ecs::Sole;
use glfw::WindowSize;
use crate::data_types::dimens::Dimens;
-use crate::event::{PostPresent as PostPresentEvent, Start as StartEvent};
+use crate::event::{Conclude as ConcludeEvent, Start as StartEvent};
use crate::vector::Vec2;
mod reexports
@@ -258,7 +258,7 @@ impl ecs::extension::Extension for Extension
fn collect(self, mut collector: ExtensionCollector<'_>)
{
collector.add_system(StartEvent, initialize);
- collector.add_system(PostPresentEvent, update);
+ collector.add_system(ConcludeEvent, update);
let window = self
.window_builder