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.

fn from_flags(flags: u32) -> MouseState

Trait Implementations

Derived Implementations

impl Hash for MouseState

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for MouseState

fn eq(&self, __arg_0: &MouseState) -> bool

fn ne(&self, __arg_0: &MouseState) -> bool

impl Eq for MouseState

impl Clone for MouseState

fn clone(&self) -> MouseState

fn clone_from(&mut self, source: &Self)

impl Copy for MouseState