Skip to content

Commit

Permalink
raw operations
Browse files Browse the repository at this point in the history
  • Loading branch information
positiveway committed May 16, 2024
1 parent ecd8b27 commit f46303a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/virtual_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit f46303a

Please sign in to comment.