MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / FrameInputGenerator

Class FrameInputGenerator

crates/luacad-studio/src/input.rs:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152pub 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
167impl FrameInputGenerator {
168 pub fn from_winit_window(window: &winit::window::Window) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected