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

Function bloom_watchos_touch

native/watchos/src/lib.rs:166–174  ·  view source on GitHub ↗
(index: i64, x: f64, y: f64, active: i64)

Source from the content-addressed store, hash-verified

164
165#[no_mangle]
166pub extern "C" fn bloom_watchos_touch(index: i64, x: f64, y: f64, active: i64) {
167 let s = state();
168 let i = index as usize;
169 if i < MAX_TOUCH {
170 s.touch_x[i].store(x.to_bits(), Ordering::Release);
171 s.touch_y[i].store(y.to_bits(), Ordering::Release);
172 s.touch_active[i].store(active as u64, Ordering::Release);
173 }
174}
175
176#[no_mangle]
177pub extern "C" fn bloom_watchos_set_screen(w: f64, h: f64) {

Callers

nothing calls this directly

Calls 1

stateFunction · 0.85

Tested by

no test coverage detected