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
|
|
@ -229,6 +229,14 @@ pub trait InputDevice {
|
|||
None
|
||||
}
|
||||
fn set_natural_scrolling_enabled(&self, enabled: bool);
|
||||
fn click_method(&self) -> Option<InputDeviceClickMethod> {
|
||||
None
|
||||
}
|
||||
fn set_click_method(&self, method: InputDeviceClickMethod);
|
||||
fn middle_button_emulation_enabled(&self) -> Option<bool> {
|
||||
None
|
||||
}
|
||||
fn set_middle_button_emulation_enabled(&self, enabled: bool);
|
||||
fn tablet_info(&self) -> Option<Box<TabletInit>> {
|
||||
None
|
||||
}
|
||||
|
|
@ -269,6 +277,13 @@ pub enum InputDeviceAccelProfile {
|
|||
Adaptive,
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub enum InputDeviceClickMethod {
|
||||
None,
|
||||
ButtonAreas,
|
||||
Clickfinger,
|
||||
}
|
||||
|
||||
pub enum BackendEvent {
|
||||
NewDrmDevice(Rc<dyn BackendDrmDevice>),
|
||||
NewConnector(Rc<dyn Connector>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue