MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / accumulate_mouse_wheel

Method accumulate_mouse_wheel

native/shared/src/input.rs:167–167  ·  view source on GitHub ↗
(&mut self, dy: f64)

Source from the content-addressed store, hash-verified

165 pub fn accumulate_mouse_delta(&mut self, dx: f64, dy: f64) { self.raw_delta_x += dx; self.raw_delta_y += dy; }
166 pub fn clear_mouse_delta(&mut self) { self.raw_delta_x = 0.0; self.raw_delta_y = 0.0; self.mouse_delta_x = 0.0; self.mouse_delta_y = 0.0; }
167 pub fn accumulate_mouse_wheel(&mut self, dy: f64) { self.mouse_wheel_y += dy; }
168 /// Returns the accumulated scroll delta since the last call, and resets it.
169 /// Games/editors call this once per frame.
170 pub fn consume_mouse_wheel(&mut self) -> f64 {

Callers 2

bloom_begin_drawingFunction · 0.80
poll_eventsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected