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

Method set_gamepad_axis

native/shared/src/input.rs:205–207  ·  view source on GitHub ↗

Gamepad

(&mut self, axis: usize, value: f32)

Source from the content-addressed store, hash-verified

203
204 // Gamepad
205 pub fn set_gamepad_axis(&mut self, axis: usize, value: f32) {
206 if axis < MAX_GAMEPAD_AXES { self.gamepad_axes[axis] = value; }
207 }
208 pub fn set_gamepad_button_down(&mut self, button: usize) {
209 if button < MAX_GAMEPAD_BUTTONS { self.gamepad_buttons_down[button] = true; }
210 }

Callers 11

poll_xinput_gamepadFunction · 0.80
poll_linux_gamepadFunction · 0.80
poll_game_controllersFunction · 0.80
bloom_begin_drawingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected