(button: mouse::Button)
| 451 | } |
| 452 | |
| 453 | fn mouse_button_label(button: mouse::Button) -> String { |
| 454 | match button { |
| 455 | mouse::Button::Left => "Left".to_owned(), |
| 456 | mouse::Button::Right => "Right".to_owned(), |
| 457 | mouse::Button::Middle => "Middle".to_owned(), |
| 458 | mouse::Button::Back => "Back".to_owned(), |
| 459 | mouse::Button::Forward => "Forward".to_owned(), |
| 460 | mouse::Button::Other(number) => format!("Mouse {number}"), |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | fn keyboard_key_label(key: &keyboard::Key) -> String { |
| 465 | match key { |
nothing calls this directly
no outgoing calls
no test coverage detected