Add initial launcher implementation

This commit is contained in:
Kenny Levinsen
2019-08-02 15:59:52 +02:00
parent a52bc3f126
commit a2bc6190ce
12 changed files with 277 additions and 57 deletions
+3
View File
@@ -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() },
}
}
}