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

Function test_bit

perro_source/api_modules/perro_input_api/src/snapshot.rs:638–642  ·  view source on GitHub ↗
(bits: &[u64], index: usize)

Source from the content-addressed store, hash-verified

636 set_bit(&mut self.action_released, action, released);
637 }
638
639 fn compute_action_down(&self, action: usize) -> bool {
640 self.input_map.actions().get(action).is_some_and(|action| {
641 action.bindings.iter().any(|binding| match binding {
642 InputBinding::Key(key) => self.keyboard.is_key_down(*key),
643 InputBinding::Mouse(button) => self.mouse.is_button_down(*button),
644 InputBinding::Gamepad(button) => {
645 self.gamepads.iter().any(|pad| pad.is_button_down(*button))

Callers 3

is_action_down_hashMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected