pub fn reset_input_state(&mut self) {
        for (_axis, axis_status) in self.axes.iter_mut() {
            axis_status.position = 0.0;
            axis_status.direction = 0.0;
        }

        for (_button, button_status) in self.buttons.iter_mut() {
            button_status.pressed = false;
            button_status.pressed_last_frame = false;
            button_status.repeat = false;
        }

        self.mouse.position = Point2::origin();
        self.mouse.last_position = Point2::origin();
        self.mouse.delta = Vector2::zeros();
    }
/// Reset the input state, all axes at zero, all buttons unpresseed, all positions and deltas
/// zeroed out.
Reset the input state, all axes at zero, all buttons unpresseed, all positions and deltas
zeroed out.
Reset the input state all axes at zero all buttons unpresseed all positions and deltas zeroed out .
pub fn reset_input_state(&mut self) {
        for (_axis, axis_status) in self.axes.iter_mut() {
            axis_status.position = 0.0;
            axis_status.direction = 0.0;
        }
        for (_button, button_status) in self.buttons.iter_mut() {
            button_status.pressed = false;
            button_status.pressed_last_frame = false;
            button_status.repeat = false;
        }
        self.mouse.position = Point2::origin();
        self.mouse.last_position = Point2::origin();
        self.mouse.delta = Vector2::zeros();
    }
pub fn reset_input_state ( & mut self ) { for ( _axis , axis_status ) in self . axes . iter_mut ( ) { axis_status . position = 0.0 ; axis_status . direction = 0.0 ; } for ( _button , button_status ) in self . buttons . iter_mut ( ) { button_status . pressed = false ; button_status . pressed_last_frame = false ; button_status . repeat = false ; } self . mouse . position = Point2 :: origin ( ) ; self . mouse . last_position = Point2 :: origin ( ) ; self . mouse . delta = Vector2 :: zeros ( ) ; }
Reset the input state, all axes at zero, all buttons unpresseed, all positions and deltas
zeroed out.
Reset the input state all axes at zero all buttons unpresseed all positions and deltas zeroed out .
&mut self
&mut self