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

Method is_gamepad_button_down

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

Source from the content-addressed store, hash-verified

141 }
142
143 pub fn is_gamepad_button_down(&self, player: usize, button: GamepadButton) -> bool {
144 self.gamepad_buttons.is_down((player, button))
145 }
146
147 pub fn is_gamepad_button_up(&self, player: usize, button: GamepadButton) -> bool {
148 self.gamepad_buttons.is_up((player, button))

Callers 1

updateMethod · 0.80

Calls 1

is_downMethod · 0.80

Tested by

no test coverage detected