summaryrefslogtreecommitdiff
path: root/engine/src/lib.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/lib.rs
parentdcc1475a58acc83aa180f7d202bf069e214980ee (diff)
feat(engine): add Keys function to get previous key state
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r--engine/src/lib.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index 36e9285..5df2292 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -13,6 +13,7 @@ use ecs::{SoleAlreadyExistsError, World};
use crate::delta_time::{update as update_delta_time, DeltaTime, LastUpdate};
use crate::event::{
+ Conclude as ConcludeEvent,
PostPresent as PostPresentEvent,
PreUpdate as PreUpdateEvent,
Present as PresentEvent,
@@ -48,7 +49,13 @@ pub extern crate ecs;
pub(crate) use crate::data_types::matrix;
pub use crate::data_types::{color, vector};
-type EventOrder = (PreUpdateEvent, UpdateEvent, PresentEvent, PostPresentEvent);
+type EventOrder = (
+ PreUpdateEvent,
+ UpdateEvent,
+ PresentEvent,
+ PostPresentEvent,
+ ConcludeEvent,
+);
#[derive(Debug)]
pub struct Engine