From 8e08d723ff7a853f2b10dc0f1408911d5801cea8 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 11 Oct 2023 08:21:10 +1300 Subject: Rewrite phosphor This has been a long-awaited task, the code has been accumulating small changes for a while now. This commit consolidates all these changes in order to make the code more readable and maintainable for the future. Notable changes: - Remove the concept of a ProgramController - Remove all of the dead OpenGL stub code - Update winit to version 28.1, from 27.4 - Use softbuffer for writing pixels to the native display server --- src/keyboard_input.rs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/keyboard_input.rs (limited to 'src/keyboard_input.rs') diff --git a/src/keyboard_input.rs b/src/keyboard_input.rs deleted file mode 100644 index 139db7e..0000000 --- a/src/keyboard_input.rs +++ /dev/null @@ -1,19 +0,0 @@ -use crate::*; -use winit::event::KeyboardInput as WinitKeyboardInput; - -#[derive(Copy, Clone)] -pub struct KeyboardInput { - pub state: PressState, - pub keycode: Option, - pub scancode: u32, -} - -impl From for KeyboardInput { - fn from(input: WinitKeyboardInput) -> Self { - Self { - state: input.state.into(), - keycode: input.virtual_keycode, - scancode: input.scancode, - } - } -} -- cgit v1.2.3-70-g09d2