mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
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:
1 parent
8d603dc51f
commit
e6ce596144
1 file changed
+5
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user