use winit::window::WindowId; use winit::event::{WindowEvent, DeviceId, DeviceEvent}; enum TrEvent { // WindowEvent { // window_id: WindowId, // event: WindowEvent<'a>, // }, /// Emitted when the OS sends an event to a device. DeviceEvent { device_id: DeviceId, event: DeviceEvent, }, }