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
160impl InputRingBuffer {
161 pub fn new(capacity: usize) -> Self {
162 Self {
163 events: VecDeque::with_capacity(capacity),
164 capacity,
165 dropped_events: 0,
166 }
167 }
168
169 pub fn push(&mut self, event: InputEvent) {
170 if self.capacity == 0 {
171 self.dropped_events = self.dropped_events.saturating_add(1);
172 return;
173 }
174 if self.events.len() == self.capacity {

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