debugging
This commit is contained in:
parent
d68dc3fa88
commit
26b7341b40
|
@ -9,11 +9,11 @@ edition = "2018"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.117", optional = true }
|
serde = { version = "1.0.117", optional = true }
|
||||||
serde_derive = { version = "1.0.117", optional = true }
|
serde_derive = { version = "1.0.117", optional = true }
|
||||||
serde_json = "1.0"
|
serde_json = { version = "1.0", optional = true }
|
||||||
once_cell = "1.5.2"
|
once_cell = "1.5.2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
with_serde = ["serde", "serde_derive"]
|
with_serde = ["serde", "serde_derive", "serde_json"]
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.dependencies]
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
winapi = { version = "0.3.9", features = ["winuser", "errhandlingapi"] }
|
winapi = { version = "0.3.9", features = ["winuser", "errhandlingapi"] }
|
||||||
|
|
|
@ -11,7 +11,7 @@ pub mod keyboard;
|
||||||
pub mod mouse;
|
pub mod mouse;
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "with_serde", derive(serde::Serialize, serde::Deserialize))]
|
||||||
pub enum EventType {
|
pub enum EventType {
|
||||||
KeyPress(Key),
|
KeyPress(Key),
|
||||||
KeyRelease(Key),
|
KeyRelease(Key),
|
||||||
|
@ -21,7 +21,7 @@ pub enum EventType {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "with_serde", derive(serde::Serialize, serde::Deserialize))]
|
||||||
pub struct Event {
|
pub struct Event {
|
||||||
pub time: SystemTime,
|
pub time: SystemTime,
|
||||||
pub event_type: EventType,
|
pub event_type: EventType,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user