| 15 | |
| 16 | #[derive(Clone, Debug)] |
| 17 | pub enum Event { |
| 18 | KeyPress(KeyCode), |
| 19 | Click { x: f32, y: f32 }, |
| 20 | MouseMove(Point), |
| 21 | TouchStart(Point), |
| 22 | TouchEnd(Point), |
| 23 | } |
| 24 | |
| 25 | impl Event { |
| 26 | fn from_key_event(key: KeyEvent) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected