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

Method set_mouse_button_down

native/shared/src/input.rs:197–197  ·  view source on GitHub ↗
(&mut self, button: usize)

Source from the content-addressed store, hash-verified

195 }
196
197 pub fn set_mouse_button_down(&mut self, button: usize) { if button < MAX_MOUSE_BUTTONS { self.mouse_down[button] = true; } }
198 pub fn set_mouse_button_up(&mut self, button: usize) { if button < MAX_MOUSE_BUTTONS { self.mouse_down[button] = false; } }
199
200 pub fn is_mouse_button_pressed(&self, button: usize) -> bool { button < MAX_MOUSE_BUTTONS && self.mouse_pressed[button] }

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