pub fn buttons_that_are_down<'a>(&self) -> impl Iterator<Item = Button> + '_ {
        let mouse_buttons = self.pressed_mouse_buttons
            .iter()
            .map(|&mb| Button::Mouse(mb));
        let keys = self.pressed_keys
            .iter()
            .flat_map(|v| KeyThenCode::new(v.clone()));
        let controller_buttons = self.pressed_controller_buttons
            .iter()
            .map(|&gb| Button::Controller(gb.0, gb.1));

        mouse_buttons.chain(keys).chain(controller_buttons)
    }
/// Returns an iterator over all buttons that are down.
Returns an iterator over all buttons that are down.
Returns an iterator over all buttons that are down .
pub fn buttons_that_are_down<'a>(&self) -> impl Iterator<Item = Button> + '_ {
        let mouse_buttons = self.pressed_mouse_buttons
            .iter()
            .map(|&mb| Button::Mouse(mb));
        let keys = self.pressed_keys
            .iter()
            .flat_map(|v| KeyThenCode::new(v.clone()));
        let controller_buttons = self.pressed_controller_buttons
            .iter()
            .map(|&gb| Button::Controller(gb.0, gb.1));
        mouse_buttons.chain(keys).chain(controller_buttons)
    }
pub fn buttons_that_are_down < ' a > ( & self ) -> impl Iterator < Item = Button > + ' _ { let mouse_buttons = self . pressed_mouse_buttons . iter ( ) . map ( | & mb | Button :: Mouse ( mb ) ) ; let keys = self . pressed_keys . iter ( ) . flat_map ( | v | KeyThenCode :: new ( v . clone ( ) ) ) ; let controller_buttons = self . pressed_controller_buttons . iter ( ) . map ( | & gb | Button :: Controller ( gb . 0 , gb . 1 ) ) ; mouse_buttons . chain ( keys ) . chain ( controller_buttons ) }
Returns an iterator over all buttons that are down.
Returns an iterator over all buttons that are down .
&self
&self