Trait InputHandler

Source
pub trait InputHandler {
    // Required methods
    fn mouse_down(&mut self, position: (f32, f32));
    fn mouse_up(&mut self, _: (f32, f32));
    fn mouse_wheel(&mut self, x: f32, y: f32);
    fn mouse_move(&mut self, position: (f32, f32));
    fn char_event(&mut self, character: char, shift: bool, ctrl: bool);
    fn key_down(&mut self, key_down: KeyCode, shift: bool, ctrl: bool);
}

Required Methods§

Source

fn mouse_down(&mut self, position: (f32, f32))

Source

fn mouse_up(&mut self, _: (f32, f32))

Source

fn mouse_wheel(&mut self, x: f32, y: f32)

Source

fn mouse_move(&mut self, position: (f32, f32))

Source

fn char_event(&mut self, character: char, shift: bool, ctrl: bool)

Source

fn key_down(&mut self, key_down: KeyCode, shift: bool, ctrl: bool)

Implementors§