Skip to main content

mouse_button_down

Function mouse_button_down 

Source
pub fn mouse_button_down(button: u32) -> bool
Expand description

Returns true if the given mouse button is currently held down. Button 0 = primary (left), 1 = secondary (right), 2 = middle.