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

Method add_wheel

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

Source from the content-addressed store, hash-verified

214 /// Add scroll-wheel movement for this frame.
215 #[inline]
216 pub fn add_wheel(&mut self, dx: f32, dy: f32) {
217 self.wheel_x += dx;
218 self.wheel_y += dy;
219 }
220
221 /// Set absolute mouse position in window pixels.
222 #[inline]

Callers 1

add_mouse_wheelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected