1
0
Fork 0
forked from wry/wry

wayland: implement wl_seat v8

This commit is contained in:
Julian Orth 2022-05-27 15:39:48 +02:00
parent 145e4dbc24
commit 50c87d6da7
10 changed files with 111 additions and 80 deletions

View file

@ -307,12 +307,8 @@ impl TestBackendMouse {
self.common.event(InputEvent::AxisSource {
source: AxisSource::Wheel,
});
self.common.event(InputEvent::AxisDiscrete {
dist: dy,
axis: ScrollAxis::Vertical,
});
self.common.event(InputEvent::Axis {
dist: Fixed::from_int(dy * 15),
self.common.event(InputEvent::Axis120 {
dist: dy * 120,
axis: ScrollAxis::Vertical,
});
self.common.event(InputEvent::AxisFrame {
@ -324,7 +320,7 @@ impl TestBackendMouse {
self.common.event(InputEvent::AxisSource {
source: AxisSource::Wheel,
});
self.common.event(InputEvent::Axis {
self.common.event(InputEvent::AxisSmooth {
dist: Fixed::from_int(dy),
axis: ScrollAxis::Vertical,
});