Update mouse input fixture for trace logging

Stub the new input trace types and no-op recorder so the focused device-event fixture continues to compile when it extracts Game::device_event.

Co-Authored-By: OpenAI Codex <[email protected]>
This commit is contained in:
ElyTheCatandOpenAI Codex committed 2026-11-02 13:09:26 +03:30
1 parent 8d603dc51f
commit e6ce596144
1 file changed
+5
+5
View File
@@ -366,6 +366,10 @@ use mouse::{MouseLook, LookOptions, Rotation};
struct ActiveEventLoop;
struct DeviceId;
enum DeviceEvent { MouseMotion { delta: (f64, f64) }, Other }
mod input_trace {
pub enum InputOrigin { User }
pub enum TraceKind { Motion { x: f64, y: f64 } }
}
#[derive(PartialEq)] enum Screen { Playing, Paused }
struct Options { offscreen: bool }
struct Game {
@@ -373,6 +377,7 @@ struct Game {
options: Options, screen: Screen, mouse: MouseLook, last_input: Instant,
}
impl Game {
fn note_input(&mut self, _: input_trace::InputOrigin, _: input_trace::TraceKind) {}
METHOD
}
fn main() {