MCPcopy Create free account
hub / github.com/PerroEngine/Perro / begin_frame

Method begin_frame

perro_source/api_modules/perro_input_api/src/gamepad.rs:101–104  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

99
100 #[inline(always)]
101 pub fn begin_frame(&mut self) {
102 self.buttons_pressed.fill(0);
103 self.buttons_released.fill(0);
104 }
105
106 #[inline(always)]
107 pub fn set_button_state(&mut self, button: GamepadButton, is_down: bool) {

Callers

nothing calls this directly

Calls 1

fillMethod · 0.80

Tested by

no test coverage detected