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

Method down

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

Source from the content-addressed store, hash-verified

100
101 #[inline]
102 pub fn actions_for_mouse(&self, button: MouseButton) -> &[usize] {
103 &self.mouse_actions[button as usize]
104 }
105
106 #[inline]
107 pub fn actions_for_gamepad(&self, button: GamepadButton) -> &[usize] {
108 &self.gamepad_actions[button.as_index()]
109 }
110
111 #[inline]
112 pub fn actions_for_joycon(&self, button: JoyConButton) -> &[usize] {
113 &self.joycon_actions[button.as_index()]
114 }

Callers 1

down_hashMethod · 0.45

Calls 6

action_hashFunction · 0.85
anyMethod · 0.80
down_hashMethod · 0.45
is_key_downMethod · 0.45
is_button_downMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected