Something went wrong. Try again.
A new game engine written in rust meant to be used in other personal projects
Something went wrong. Try again.
123456789101112131415161718192021222324252627use winit::event::Event as WinitEvent;use winit::window::WindowId;
#[derive(Debug, Clone)]pub struct Event { window_id: Option<WindowId>, payload: EventType,}
impl Event { pub fn new<I: Into<Option<WindowId>>>(payload: EventType, window_id: I) -> Self { Self { window_id: window_id.into(), payload, } }}
impl From<Event> for WinitEvent<Event> { fn from(event: Event) -> Self { WinitEvent::UserEvent(event) }}
#[derive(Debug, Clone)]pub enum EventType {}