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

Function bloom_get_gamepad_axis

native/linux/src/lib.rs:1604–1604  ·  view source on GitHub ↗
(axis: f64)

Source from the content-addressed store, hash-verified

1602pub extern "C" fn bloom_is_gamepad_available() -> f64 { if engine().input.is_gamepad_available() { 1.0 } else { 0.0 } }
1603#[no_mangle]
1604pub extern "C" fn bloom_get_gamepad_axis(axis: f64) -> f64 { engine().input.get_gamepad_axis(axis as usize) as f64 }
1605#[no_mangle]
1606pub extern "C" fn bloom_is_gamepad_button_pressed(btn: f64) -> f64 { if engine().input.is_gamepad_button_pressed(btn as usize) { 1.0 } else { 0.0 } }
1607#[no_mangle]

Callers

nothing calls this directly

Calls 2

get_gamepad_axisMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected