aboutsummaryrefslogtreecommitdiff
path: root/src/input/events.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-06-04 15:00:16 -0400
committerLibravatar Silas Bartha <[email protected]>2024-06-04 15:00:16 -0400
commita002e4d738535e6ca779c71231f7b84864b9a8d0 (patch)
tree8ec521b535f3820328f9ea6f2511ca29c630b82f /src/input/events.rs
parent56aafda8495243fa939bdce01f36d4adbf4ec556 (diff)
Refactored + Renamed + Added Docs
Diffstat (limited to 'src/input/events.rs')
-rw-r--r--src/input/events.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input/events.rs b/src/input/events.rs
new file mode 100644
index 0000000..cf46445
--- /dev/null
+++ b/src/input/events.rs
@@ -0,0 +1,6 @@
+use bevy::prelude::*;
+use crossterm::event::Event;
+
+/// An event triggered when a crossterm input event is received
+#[derive(Event)]
+pub struct TerminalInputEvent(pub Event);