| 30 | #[repr(C)] |
| 31 | #[derive(Clone, Debug, Copy)] |
| 32 | pub struct Input { |
| 33 | pub mouse_x: usize, |
| 34 | pub mouse_y: usize, |
| 35 | pub keys: [KeyState; 1024], |
| 36 | pub history_last_index: usize, |
| 37 | pub history_ring: [InputEvent; HISTORY_SIZE], |
| 38 | } |
| 39 | |
| 40 | impl Input { |
| 41 | pub const fn new() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected