Skip to main content

get_mouse_button

Function get_mouse_button 

Source
pub fn get_mouse_button(event: &Event) -> Option<(MouseButton, ElementState)>
Expand description

If this event was for manipulating a mouse button, this will return the MouseButton and the new state.