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

@ -444,6 +444,10 @@ trait TestInputDevice: InputDevice {
fn set_drag_lock_enabled(&self, enabled: bool) {
let _ = enabled;
}
fn set_natural_scrolling_enabled(&self, enabled: bool) {
let _ = enabled;
}
}
impl<T: TestInputDevice> InputDevice for T {
@ -502,4 +506,8 @@ impl<T: TestInputDevice> InputDevice for T {
fn set_drag_lock_enabled(&self, enabled: bool) {
<Self as TestInputDevice>::set_drag_lock_enabled(self, enabled)
}
fn set_natural_scrolling_enabled(&self, enabled: bool) {
<Self as TestInputDevice>::set_natural_scrolling_enabled(self, enabled)
}
}