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

Method accumulate_mouse_delta

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

Source from the content-addressed store, hash-verified

163 // Mouse
164 pub fn set_mouse_position(&mut self, x: f64, y: f64) { self.mouse_x = x; self.mouse_y = y; }
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.

Callers 2

bloom_begin_drawingFunction · 0.80
poll_eventsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected