1
0
Fork 0
forked from wry/wry

input: add support for natural scrolling

Closes #69
This commit is contained in:
Julian Orth 2024-02-04 18:50:49 +01:00
parent b4d73064d9
commit 887e2b6cbc
11 changed files with 77 additions and 0 deletions

View file

@ -104,6 +104,13 @@ impl InputDevice {
pub fn set_drag_lock_enabled(self, enabled: bool) {
get!().set_input_drag_lock_enabled(self, enabled);
}
/// Sets whether natural scrolling is enabled for this device.
///
/// See <https://wayland.freedesktop.org/libinput/doc/latest/scrolling.html>
pub fn set_natural_scrolling_enabled(self, enabled: bool) {
get!().set_input_natural_scrolling_enabled(self, enabled);
}
}
/// A seat.