input: add click method and middle button emulation
This commit is contained in:
parent
0524e01a3c
commit
b20153550e
24 changed files with 598 additions and 21 deletions
|
|
@ -5,7 +5,7 @@ use {
|
|||
client::{Client, ClientMatcher},
|
||||
input::{
|
||||
FocusFollowsMouseMode, InputDevice, Seat, SwitchEvent, acceleration::AccelProfile,
|
||||
capability::Capability,
|
||||
capability::Capability, clickmethod::ClickMethod,
|
||||
},
|
||||
keyboard::{Keymap, mods::Modifiers, syms::KeySym},
|
||||
logging::LogLevel,
|
||||
|
|
@ -710,6 +710,14 @@ pub enum ClientMessage<'a> {
|
|||
seat: Seat,
|
||||
key: KeySym,
|
||||
},
|
||||
SetClickMethod {
|
||||
device: InputDevice,
|
||||
method: ClickMethod,
|
||||
},
|
||||
SetMiddleButtonEmulationEnabled {
|
||||
device: InputDevice,
|
||||
enabled: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue