1
0
Fork 0
forked from wry/wry

input: implement wl_seat version 9

This commit is contained in:
Julian Orth 2024-02-04 19:51:36 +01:00
parent 887e2b6cbc
commit 78b557b4a1
15 changed files with 91 additions and 20 deletions

View file

@ -40,12 +40,14 @@ impl PointerOwnerHolder {
self.pending_scroll.source.set(Some(axis_source as _));
}
pub fn axis_120(&self, delta: i32, axis: ScrollAxis) {
pub fn axis_120(&self, delta: i32, axis: ScrollAxis, inverted: bool) {
self.pending_scroll.v120[axis as usize].set(Some(delta));
self.pending_scroll.inverted[axis as usize].set(inverted);
}
pub fn axis_px(&self, delta: Fixed, axis: ScrollAxis) {
pub fn axis_px(&self, delta: Fixed, axis: ScrollAxis, inverted: bool) {
self.pending_scroll.px[axis as usize].set(Some(delta));
self.pending_scroll.inverted[axis as usize].set(inverted);
}
pub fn axis_stop(&self, axis: ScrollAxis) {