config: allow setting per-device scroll wheel speed
This commit is contained in:
parent
50c87d6da7
commit
c0afc5cf2a
12 changed files with 78 additions and 16 deletions
|
|
@ -532,6 +532,10 @@ impl Client {
|
|||
self.send(&ClientMessage::SetTransformMatrix { device, matrix })
|
||||
}
|
||||
|
||||
pub fn set_px_per_wheel_scroll(&self, device: InputDevice, px: f64) {
|
||||
self.send(&ClientMessage::SetPxPerWheelScroll { device, px })
|
||||
}
|
||||
|
||||
pub fn device_name(&self, device: InputDevice) -> String {
|
||||
let res = self.send_with_response(&ClientMessage::GetDeviceName { device });
|
||||
get_response!(res, String::new(), GetDeviceName { name });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue