MCPcopy Create free account
hub / github.com/PerroEngine/Perro / test

Method test

perro_source/api_modules/perro_input_api/src/joycon.rs:297–302  ·  view source on GitHub ↗
(&self, bits: &[u64; JoyConState::BUTTON_WORDS], button: JoyConButton)

Source from the content-addressed store, hash-verified

295 #[inline(always)]
296 pub fn mouse_sensor(&self) -> JoyConMouseSensor {
297 self.mouse_sensor
298 }
299
300 #[inline(always)]
301 pub fn is_button_down(&self, button: JoyConButton) -> bool {
302 self.test(&self.buttons_down, button)
303 }
304
305 #[inline(always)]

Callers 3

is_button_downMethod · 0.45
is_button_pressedMethod · 0.45
is_button_releasedMethod · 0.45

Calls 1

as_indexMethod · 0.45

Tested by

no test coverage detected