Add initial launcher implementation
This commit is contained in:
@@ -5,9 +5,11 @@ use std::sync::{Arc, Mutex};
|
||||
|
||||
use chrono::{DateTime, Local};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum Input {
|
||||
Click { pos: (u32, u32), button: u32 },
|
||||
Scroll { pos: (u32, u32), x: f64, y: f64 },
|
||||
Keypress { key: u32, interpreted: Option<String> },
|
||||
}
|
||||
|
||||
impl Input {
|
||||
@@ -22,6 +24,7 @@ impl Input {
|
||||
x: *x,
|
||||
y: *y,
|
||||
},
|
||||
Input::Keypress { key, interpreted } => Input::Keypress { key: *key, interpreted: interpreted.clone() },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user