From 29628bf68040466bc0968841522b536bab82f54a Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 7 Mar 2023 16:52:09 -0500 Subject: [PATCH] remove now unused InputDevice struct SystemResources implementations have now kind of taken that role ... i suppose. maybe i'll think differently in the future? --- ggdt/src/system/input_devices/mod.rs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ggdt/src/system/input_devices/mod.rs b/ggdt/src/system/input_devices/mod.rs index d540f5d..c299db4 100644 --- a/ggdt/src/system/input_devices/mod.rs +++ b/ggdt/src/system/input_devices/mod.rs @@ -18,28 +18,3 @@ pub trait InputDevice { /// input events have been processed via `handle_event`. fn update(&mut self); } - -/// Container for all available input devices available for applications to use. -pub struct InputDevices { - pub keyboard: keyboard::Keyboard, - pub mouse: mouse::Mouse, -} - -impl InputDevice for InputDevices { - fn update(&mut self) { - self.keyboard.update(); - self.mouse.update(); - } -} - -impl SystemEventHandler for InputDevices { - fn handle_event(&mut self, event: &SystemEvent) -> bool { - if self.keyboard.handle_event(event) { - return true; - } - if self.mouse.handle_event(event) { - return true; - } - false - } -} \ No newline at end of file