metal,config: allow enabling tap-to-click
This commit is contained in:
parent
59445dd875
commit
6cc97ee56e
13 changed files with 293 additions and 4 deletions
|
|
@ -83,6 +83,27 @@ impl InputDevice {
|
|||
pub fn set_px_per_wheel_scroll(self, px: f64) {
|
||||
get!().set_px_per_wheel_scroll(self, px);
|
||||
}
|
||||
|
||||
/// Sets whether tap-to-click is enabled for this device.
|
||||
///
|
||||
/// See https://wayland.freedesktop.org/libinput/doc/latest/tapping.html
|
||||
pub fn set_tap_enabled(self, enabled: bool) {
|
||||
get!().set_input_tap_enabled(self, enabled);
|
||||
}
|
||||
|
||||
/// Sets whether tap-and-drag is enabled for this device.
|
||||
///
|
||||
/// See https://wayland.freedesktop.org/libinput/doc/latest/tapping.html
|
||||
pub fn set_drag_enabled(self, enabled: bool) {
|
||||
get!().set_input_drag_enabled(self, enabled);
|
||||
}
|
||||
|
||||
/// Sets whether drag lock is enabled for this device.
|
||||
///
|
||||
/// See https://wayland.freedesktop.org/libinput/doc/latest/tapping.html
|
||||
pub fn set_drag_lock_enabled(self, enabled: bool) {
|
||||
get!().set_input_drag_lock_enabled(self, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
/// A seat.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue