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

Method down_hash

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

Source from the content-addressed store, hash-verified

136 ) -> bool {
137 self.pressed_hash(action_hash(name), keyboard, mouse, gamepads, joycons)
138 }
139
140 #[inline]
141 pub fn released(
142 &self,
143 name: &str,
144 keyboard: &KeyboardState,
145 mouse: &MouseState,
146 gamepads: &[GamepadState],
147 joycons: &[JoyConState],
148 ) -> bool {
149 self.released_hash(action_hash(name), keyboard, mouse, gamepads, joycons)
150 }
151
152 #[inline]
153 pub fn down_hash(
154 &self,
155 name_hash: u64,

Callers 1

downMethod · 0.45

Calls 4

action_by_hashMethod · 0.80
anyMethod · 0.80
iterMethod · 0.45
downMethod · 0.45

Tested by

no test coverage detected