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
prev_on_screen: bool
on_screen: bool
prev_x: f32
prev_y: f32
pos_x: f32
pos_y: f32
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.