pub fn pressed_mouse_buttons(&self) -> PressedMouseButtonIterator {
        PressedMouseButtonIterator {
            iter: self.mouse_buttons(),
        }
    }
/// Returns an iterator of pressed mouse buttons.
///
/// # Example
/// ```no_run
/// use sdl2::mouse::MouseButton;
/// use std::collections::HashSet;
///
/// fn pressed_mouse_button_set(e: &sdl2::EventPump) -> HashSet<MouseButton> {
///     e.mouse_state().pressed_mouse_buttons().collect()
/// }
///
/// fn newly_pressed(old: &HashSet<MouseButton>, new: &HashSet<MouseButton>) -> HashSet<MouseButton> {
///     new - old
///     // sugar for: new.difference(old).collect()
/// }
/// ```
Returns an iterator of pressed mouse buttons.
Returns an iterator of pressed mouse buttons .
pub fn pressed_mouse_buttons(&self) -> PressedMouseButtonIterator {
        PressedMouseButtonIterator {
            iter: self.mouse_buttons(),
        }
    }
pub fn pressed_mouse_buttons ( & self ) -> PressedMouseButtonIterator { PressedMouseButtonIterator { iter : self . mouse_buttons ( ) , } }
Returns an iterator of pressed mouse buttons.
Returns an iterator of pressed mouse buttons .
&self
&self
example
```no_run
use sdl2::mouse::MouseButton;
use std::collections::HashSet.

fn pressed_mouse_button_set(e: &sdl2::EventPump) -> HashSet {
e.mouse_state().pressed_mouse_buttons().collect()
}

fn newly_pressed(old: &HashSet, new: &HashSet) -> HashSet {
new - old
sugar for: new.difference(old).collect()
}
```
` ` ` no_run use sdl2 :: mouse :: MouseButton ; use std :: collections :: HashSet . fn pressed_mouse_button_set ( e : &sdl2 :: EventPump ) - > HashSet { e . mouse_state () . pressed_mouse_buttons () . collect () } fn newly_pressed ( old : &HashSet new : &HashSet ) - > HashSet { new - old sugar for : new . difference ( old ) . collect () } ` ` `