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

@ -617,6 +617,10 @@ impl Client {
self.send(&ClientMessage::SetTapEnabled { device, enabled })
}
pub fn set_input_natural_scrolling_enabled(&self, device: InputDevice, enabled: bool) {
self.send(&ClientMessage::SetNaturalScrollingEnabled { device, enabled })
}
pub fn set_input_drag_enabled(&self, device: InputDevice, enabled: bool) {
self.send(&ClientMessage::SetDragEnabled { device, enabled })
}