aboutsummaryrefslogtreecommitdiff
path: root/src/systems.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-05-04 02:21:01 -0400
committerLibravatar Silas Bartha <[email protected]>2024-05-04 02:21:01 -0400
commitec8f43e79cb8a182c0dc73d103e632fac96293b6 (patch)
tree36a915128ee0ba6411b02a0eadcabaa56064ba70 /src/systems.rs
parent6834194b9e16a7b5ee68b539ceb1a99b8f1ff90b (diff)
Added command queue access to event handlersv0.1.2
Diffstat (limited to 'src/systems.rs')
-rw-r--r--src/systems.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systems.rs b/src/systems.rs
index e1a9bef..b0055b9 100644
--- a/src/systems.rs
+++ b/src/systems.rs
@@ -119,10 +119,11 @@ fn braille_char(mask: u8) -> char {
pub fn widget_input_handling(
mut terminal_ui: ResMut<TerminalUI>,
mut event_reader: EventReader<TerminalInputEvent>,
+ mut commands: Commands,
) {
for event in event_reader.read() {
for widget in terminal_ui.widgets().iter_mut() {
- widget.handle_events(event);
+ widget.handle_events(event, &mut commands);
}
}
}