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

Function bloom_disable_cursor

native/web/src/lib.rs:1813–1818  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1811
1812#[wasm_bindgen]
1813pub fn bloom_disable_cursor() {
1814 let input = &mut engine().input;
1815 input.cursor_disabled = true;
1816 input.clear_mouse_delta();
1817 // JS glue also calls canvas.requestPointerLock()
1818}
1819
1820#[wasm_bindgen]
1821pub 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