1 2 3 4 5 6 7 8 9 10 11 12
use winit::event::MouseButton; use winit::keyboard::KeyCode; pub mod keyboard; pub(crate) mod mouse; pub enum GlobalInputEvent { Button(MouseButton, bool), // (button, is_pressed) Wheel(f32, f32), Move(f32, f32), Key(KeyCode, bool), // (key, is_pressed) }