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

Method push

perro_source/api_modules/perro_input_api/src/frame.rs:161–171  ·  view source on GitHub ↗
(&mut self, event: InputEvent)

Source from the content-addressed store, hash-verified

159 }
160
161 pub fn push(&mut self, event: InputEvent) {
162 if self.capacity == 0 {
163 self.dropped_events = self.dropped_events.saturating_add(1);
164 return;
165 }
166 if self.events.len() == self.capacity {
167 self.events.pop_front();
168 self.dropped_events = self.dropped_events.saturating_add(1);
169 }
170 self.events.push_back(event);
171 }
172
173 pub fn seal_frame(&mut self) -> InputFrame {
174 let dropped = self.dropped_events;

Callers 15

add_preview_node_gizmosFunction · 0.45
push_doc_orderFunction · 0.45
preview_runtime_orderFunction · 0.45
set_scene_vec2Function · 0.45
set_scene_f32Function · 0.45
set_scene_boolFunction · 0.45
set_scene_vec3Function · 0.45
set_scene_vec4Function · 0.45
set_scene_stringFunction · 0.45
set_scene_keyFunction · 0.45
set_scene_bindingFunction · 0.45
sanitize_panim_identFunction · 0.45

Calls 1

lenMethod · 0.45