From e6ce59614465e786fca19e723b66f87b0d4585cf Mon Sep 17 00:00:00 2001 From: ElyTheCat <78264512+elythepreciouscat@users.noreply.github.com> Date: Mon, 2 Nov 2026 13:09:26 +0330 Subject: [PATCH] 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 --- tests/test_world_input_capture.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_world_input_capture.py b/tests/test_world_input_capture.py index ee7bc73a20..fe80c44578 100644 --- a/tests/test_world_input_capture.py +++ b/tests/test_world_input_capture.py @@ -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() {