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

Method released_hash

perro_source/api_modules/perro_input_api/src/input_map.rs:172–186  ·  view source on GitHub ↗
(
        &self,
        name_hash: u64,
        keyboard: &KeyboardState,
        mouse: &MouseState,
        gamepads: &[GamepadState],
        joycons: &[JoyConState],
    )

Source from the content-addressed store, hash-verified

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,

Callers 1

releasedMethod · 0.45

Calls 4

action_by_hashMethod · 0.80
anyMethod · 0.80
iterMethod · 0.45
releasedMethod · 0.45

Tested by

no test coverage detected