MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / is_gamepad_button_pressed

Method is_gamepad_button_pressed

src/input.rs:151–153  ·  view source on GitHub ↗
(&self, player: usize, button: GamepadButton)

Source from the content-addressed store, hash-verified

149 }
150
151 pub fn is_gamepad_button_pressed(&self, player: usize, button: GamepadButton) -> bool {
152 self.gamepad_buttons.is_pressed((player, button))
153 }
154
155 pub fn is_gamepad_button_released(&self, player: usize, button: GamepadButton) -> bool {
156 self.gamepad_buttons.is_released((player, button))

Callers

nothing calls this directly

Calls 1

is_pressedMethod · 0.80

Tested by

no test coverage detected