Trait spectrusty::peripherals::mouse::MouseInterface
source · pub trait MouseInterface {
fn set_buttons(&mut self, buttons: MouseButtons);
fn get_buttons(&self) -> MouseButtons;
fn move_mouse(&mut self, mov: MouseMovement);
}
Expand description
An interface for providing user input data for a MouseDevice implementation.
Required Methods§
Sets the state of all mouse buttons.
Returns a state of all mouse buttons.
sourcefn move_mouse(&mut self, mov: MouseMovement)
fn move_mouse(&mut self, mov: MouseMovement)
Moves the mouse by the given interval.