(raw: i32)
| 11 | |
| 12 | impl MouseButton { |
| 13 | pub(crate) fn from_raw(raw: i32) -> Option<MouseButton> { |
| 14 | match raw { |
| 15 | SDL_BUTTON_LEFT => Some(MouseButton::Left), |
| 16 | SDL_BUTTON_MIDDLE => Some(MouseButton::Middle), |
| 17 | SDL_BUTTON_RIGHT => Some(MouseButton::Right), |
| 18 | SDL_BUTTON_X1 => Some(MouseButton::X1), |
| 19 | SDL_BUTTON_X2 => Some(MouseButton::X2), |
| 20 | _ => None, |
| 21 | } |
| 22 | } |
| 23 | } |
nothing calls this directly
no outgoing calls
no test coverage detected