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

Method pressed

perro_source/api_modules/perro_input_api/src/input_map.rs:114–123  ·  view source on GitHub ↗
(
        &self,
        name: &str,
        keyboard: &KeyboardState,
        mouse: &MouseState,
        gamepads: &[GamepadState],
        joycons: &[JoyConState],
    )

Source from the content-addressed store, hash-verified

112 pub fn actions_for_joycon(&self, button: JoyConButton) -> &[usize] {
113 &self.joycon_actions[button.as_index()]
114 }
115
116 #[inline]
117 pub fn down(
118 &self,
119 name: &str,
120 keyboard: &KeyboardState,
121 mouse: &MouseState,
122 gamepads: &[GamepadState],
123 joycons: &[JoyConState],
124 ) -> bool {
125 self.down_hash(action_hash(name), keyboard, mouse, gamepads, joycons)
126 }

Callers 1

pressed_hashMethod · 0.45

Calls 6

action_hashFunction · 0.85
anyMethod · 0.80
pressed_hashMethod · 0.45
is_key_pressedMethod · 0.45
is_button_pressedMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected