pub fn update_button_down(&mut self, button: Buttons, repeat: bool) {
        self.update_event(InputEvent::Button {
            button,
            state: true,
            repeat,
        });
    }
/// This method should get called by your key_down_event handler.
This method should get called by your key_down_event handler.
This method should get called by your key_down_event handler .
pub fn update_button_down(&mut self, button: Buttons, repeat: bool) {
        self.update_event(InputEvent::Button {
            button,
            state: true,
            repeat,
        });
    }
pub fn update_button_down ( & mut self , button : Buttons , repeat : bool ) { self . update_event ( InputEvent :: Button { button , state : true , repeat , } ) ; }
This method should get called by your key_down_event handler.
This method should get called by your key_down_event handler .
&mut self
button
Buttons
repeat
bool
&mut self
button
Buttons
repeat
bool