(
&self,
name: &str,
keyboard: &KeyboardState,
mouse: &MouseState,
gamepads: &[GamepadState],
joycons: &[JoyConState],
)
| 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 | } |
no test coverage detected