Struct sdl2::mouse::MouseState
[−]
[src]
pub struct MouseState { // some fields omitted }
Methods
impl MouseState
fn button(&self, button: Mouse) -> bool
Tests if a mouse button was pressed.
fn left(&self) -> bool
Tests if the left mouse button was pressed.
fn middle(&self) -> bool
Tests if the middle mouse button was pressed.
fn right(&self) -> bool
Tests if the right mouse button was pressed.
fn x1(&self) -> bool
Tests if the X1 mouse button was pressed.
fn x2(&self) -> bool
Tests if the X2 mouse button was pressed.