Trait EventHandler

Source
pub trait EventHandler {
    // Required methods
    fn handle_keys(&mut self, state: &WindowState, event: &Event) -> Result<()>;
    fn handle_mouse(
        &mut self,
        state: &WindowState,
        ms: &MouseState,
        rms: &RelativeMouseState,
    ) -> Result<()>;
}

Required Methods§

Source

fn handle_keys(&mut self, state: &WindowState, event: &Event) -> Result<()>

Source

fn handle_mouse( &mut self, state: &WindowState, ms: &MouseState, rms: &RelativeMouseState, ) -> Result<()>

Implementors§