Struct wasm_rgame::MouseState [] [src]

pub struct MouseState {
    pub prev_on_screen: bool,
    pub on_screen: bool,
    pub prev_x: f32,
    pub prev_y: f32,
    pub pos_x: f32,
    pub pos_y: f32,
    // some fields omitted
}

The type that holds the state of the Mouse.

Fields

Methods

impl MouseState
[src]

[src]

Returns true if the MouseButton was just pressed.

[src]

Returns true every frame the MouseButton is pressed. This includes the frame the MouseButton was just pressed.

[src]

Returns true if the MouseButton was just released.

Trait Implementations

Auto Trait Implementations

impl Send for MouseState

impl Sync for MouseState