(
&self,
name_hash: u64,
keyboard: &KeyboardState,
mouse: &MouseState,
gamepads: &[GamepadState],
joycons: &[JoyConState],
)
| 170 | pub fn pressed_hash( |
| 171 | &self, |
| 172 | name_hash: u64, |
| 173 | keyboard: &KeyboardState, |
| 174 | mouse: &MouseState, |
| 175 | gamepads: &[GamepadState], |
| 176 | joycons: &[JoyConState], |
| 177 | ) -> bool { |
| 178 | self.action_by_hash(name_hash).is_some_and(|action| { |
| 179 | action |
| 180 | .bindings |
| 181 | .iter() |
| 182 | .any(|binding| binding.pressed(keyboard, mouse, gamepads, joycons)) |
| 183 | }) |
| 184 | } |
| 185 | |
| 186 | #[inline] |
| 187 | pub fn released_hash( |
| 188 | &self, |
| 189 | name_hash: u64, |
no test coverage detected