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

Method get_gamepad_axis

native/shared/src/input.rs:216–218  ·  view source on GitHub ↗
(&self, axis: usize)

Source from the content-addressed store, hash-verified

214
215 pub fn is_gamepad_available(&self) -> bool { self.gamepad_available }
216 pub fn get_gamepad_axis(&self, axis: usize) -> f32 {
217 if axis < MAX_GAMEPAD_AXES { self.gamepad_axes[axis] } else { 0.0 }
218 }
219 pub fn is_gamepad_button_pressed(&self, button: usize) -> bool {
220 button < MAX_GAMEPAD_BUTTONS && self.gamepad_buttons_pressed[button]
221 }

Callers 7

bloom_get_gamepad_axisFunction · 0.80
bloom_get_gamepad_axisFunction · 0.80
bloom_get_gamepad_axisFunction · 0.80
bloom_get_gamepad_axisFunction · 0.80
bloom_get_gamepad_axisFunction · 0.80
bloom_get_gamepad_axisFunction · 0.80
bloom_get_gamepad_axisFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected