diff --git a/src/virtual_device.rs b/src/virtual_device.rs index 326bcaa..58489ff 100644 --- a/src/virtual_device.rs +++ b/src/virtual_device.rs @@ -315,6 +315,16 @@ impl VirtualDevice { self.synchronize() } + #[inline] + pub fn scroll_raw_x(&mut self, value: Coord) -> EmptyResult { + self.write(EV_REL, REL_HWHEEL, value) + } + + #[inline] + pub fn scroll_raw_y(&mut self, value: Coord) -> EmptyResult { + self.write(EV_REL, REL_WHEEL, value) + } + #[inline] pub fn scroll_x(&mut self, value: Coord) -> EmptyResult { self.write(EV_REL, REL_HWHEEL, value)?;