config: allow handling switch events
This commit is contained in:
parent
55d55bf161
commit
cf233abb5a
21 changed files with 443 additions and 27 deletions
|
|
@ -8,7 +8,7 @@ use {
|
|||
libinput::consts::DeviceCapability,
|
||||
video::drm::{ConnectorType, DrmConnector, DrmError, DrmVersion},
|
||||
},
|
||||
jay_config::video::GfxApi,
|
||||
jay_config::{input::SwitchEvent, video::GfxApi},
|
||||
std::{
|
||||
any::Any,
|
||||
error::Error,
|
||||
|
|
@ -312,6 +312,11 @@ pub enum InputEvent {
|
|||
time_usec: u64,
|
||||
cancelled: bool,
|
||||
},
|
||||
|
||||
SwitchEvent {
|
||||
time_usec: u64,
|
||||
event: SwitchEvent,
|
||||
},
|
||||
}
|
||||
|
||||
pub enum DrmEvent {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue