[−][src]Trait leafrender::input::Input
Handles basic input
Associated Types
Loading content...Required methods
fn update(&mut self, drawer: &mut Self::Window)
Updates input
fn is_mouse_down(&self) -> bool
Checks to see if the mouse/pointer is down
fn get_mouse_pos(&self) -> (usize, usize)
Returns the current mouse position in a (x, y) tuple.
fn do_continue(&self) -> bool
Checks to see if execution should be continued
fn new() -> Self
Creates a new Input instance.