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.

Moves the mouse by the given interval.

Implementors§