Skip to main content

InputDevice

Trait InputDevice 

Source
pub trait InputDevice {
    // Required method
    fn poll(&mut self) -> Option<Event>;
}
Expand description

Trait for input devices such as touchscreens or mice.

Required Methods§

Source

fn poll(&mut self) -> Option<Event>

Retrieve the next input event if available.

Implementors§