(
&self,
name_hash: u64,
keyboard: &KeyboardState,
mouse: &MouseState,
gamepads: &[GamepadState],
joycons: &[JoyConState],
)
| 153 | pub fn down_hash( |
| 154 | &self, |
| 155 | name_hash: u64, |
| 156 | keyboard: &KeyboardState, |
| 157 | mouse: &MouseState, |
| 158 | gamepads: &[GamepadState], |
| 159 | joycons: &[JoyConState], |
| 160 | ) -> bool { |
| 161 | self.action_by_hash(name_hash).is_some_and(|action| { |
| 162 | action |
| 163 | .bindings |
| 164 | .iter() |
| 165 | .any(|binding| binding.down(keyboard, mouse, gamepads, joycons)) |
| 166 | }) |
| 167 | } |
| 168 | |
| 169 | #[inline] |
| 170 | pub fn pressed_hash( |
| 171 | &self, |
| 172 | name_hash: u64, |
no test coverage detected