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

Function bloom_disable_cursor

native/macos/src/lib.rs:2237–2245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2235
2236#[no_mangle]
2237pub extern "C" fn bloom_disable_cursor() {
2238 let input = &mut engine().input;
2239 input.cursor_disabled = true;
2240 input.clear_mouse_delta();
2241 unsafe {
2242 CGDisplayHideCursor(0);
2243 CGAssociateMouseAndMouseCursorPosition(0); // dissociate = relative mode
2244 }
2245}
2246
2247#[no_mangle]
2248pub extern "C" fn bloom_enable_cursor() {

Callers

nothing calls this directly

Calls 2

clear_mouse_deltaMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected