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

Method set_mouse_position

native/shared/src/input.rs:164–164  ·  view source on GitHub ↗

Mouse

(&mut self, x: f64, y: f64)

Source from the content-addressed store, hash-verified

162
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; }

Callers 6

wndprocFunction · 0.80
bloom_android_on_touchFunction · 0.80
handle_touchesFunction · 0.80
bloom_begin_drawingFunction · 0.80
poll_eventsFunction · 0.80
handle_touchesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected