| 150 | } |
| 151 | |
| 152 | pub struct FrameInputGenerator { |
| 153 | last_time: Instant, |
| 154 | first_frame: bool, |
| 155 | events: Vec<Event>, |
| 156 | accumulated_time: f64, |
| 157 | viewport: Viewport, |
| 158 | device_pixel_ratio: f64, |
| 159 | cursor_pos: Option<LogicalPoint>, |
| 160 | finger_id: Option<u64>, |
| 161 | secondary_cursor_pos: Option<LogicalPoint>, |
| 162 | secondary_finger_id: Option<u64>, |
| 163 | modifiers: Modifiers, |
| 164 | mouse_pressed: Option<MouseButton>, |
| 165 | } |
| 166 | |
| 167 | impl FrameInputGenerator { |
| 168 | pub fn from_winit_window(window: &winit::window::Window) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected