is_pressed

Function is_pressed 

Source
pub fn is_pressed(button: Button) -> bool
Expand description

Return true if the button of the mouse is currently pressed. Make sure you called start_recording_mouse_events() before.