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

Function bloom_is_key_pressed

native/android/src/lib.rs:354–356  ·  view source on GitHub ↗
(key: f64)

Source from the content-addressed store, hash-verified

352
353#[no_mangle]
354pub extern "C" fn bloom_is_key_pressed(key: f64) -> f64 {
355 if engine().input.is_key_pressed(key as usize) { 1.0 } else { 0.0 }
356}
357
358#[no_mangle]
359pub extern "C" fn bloom_is_key_down(key: f64) -> f64 {

Callers

nothing calls this directly

Calls 2

is_key_pressedMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected