From ec8f43e79cb8a182c0dc73d103e632fac96293b6 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sat, 4 May 2024 02:21:01 -0400 Subject: Added command queue access to event handlers --- src/systems.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/systems.rs') 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, mut event_reader: EventReader, + 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); } } } -- cgit v1.2.3