(bits: &[u64], index: usize)
| 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)) |
no test coverage detected