pub fn button_is_down(&self, button: Button) -> bool {
        match button {
            Button::Key(k) => self.key_is_down(k),
            Button::Mouse(b) => self.mouse_button_is_down(b),
            Button::ScanCode(s) => self.scan_code_is_down(s),
            Button::Controller(g, b) => self.controller_button_is_down(g, b),
        }
    }
/// Checks if a button is down.
Checks if a button is down.
Checks if a button is down .
pub fn button_is_down(&self, button: Button) -> bool {
        match button {
            Button::Key(k) => self.key_is_down(k),
            Button::Mouse(b) => self.mouse_button_is_down(b),
            Button::ScanCode(s) => self.scan_code_is_down(s),
            Button::Controller(g, b) => self.controller_button_is_down(g, b),
        }
    }
pub fn button_is_down ( & self , button : Button ) -> bool { match button { Button :: Key ( k ) => self . key_is_down ( k ) , Button :: Mouse ( b ) => self . mouse_button_is_down ( b ) , Button :: ScanCode ( s ) => self . scan_code_is_down ( s ) , Button :: Controller ( g , b ) => self . controller_button_is_down ( g , b ) , } }
Checks if a button is down.
Checks if a button is down .
&self
button
Button
&self
button
Button