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

Method set_gamepad_button_down

native/shared/src/input.rs:208–210  ·  view source on GitHub ↗
(&mut self, button: usize)

Source from the content-addressed store, hash-verified

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 }
211 pub fn set_gamepad_button_up(&mut self, button: usize) {
212 if button < MAX_GAMEPAD_BUTTONS { self.gamepad_buttons_down[button] = false; }
213 }

Calls

no outgoing calls

Tested by

no test coverage detected