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

Method add_delta

perro_source/api_modules/perro_input_api/src/state.rs:209–212  ·  view source on GitHub ↗
(&mut self, dx: f32, dy: f32)

Source from the content-addressed store, hash-verified

207 /// Add relative mouse movement in pixels.
208 #[inline]
209 pub fn add_delta(&mut self, dx: f32, dy: f32) {
210 self.delta_x += dx;
211 self.delta_y += dy;
212 }
213
214 /// Add scroll-wheel movement for this frame.
215 #[inline]

Callers 1

add_mouse_deltaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected