1
0
Fork 0
forked from wry/wry

backend: make input device properties readable

This commit is contained in:
Julian Orth 2024-03-12 16:16:21 +01:00
parent 8cd28dd3bf
commit 813f87faaa
6 changed files with 232 additions and 58 deletions

View file

@ -149,13 +149,21 @@ impl MetalBackend {
InputEvent::Axis120 {
dist: scroll as _,
axis,
inverted: dev.natural_scrolling.get(),
inverted: dev
.effective
.natural_scrolling_enabled
.get()
.unwrap_or_default(),
}
} else {
InputEvent::AxisPx {
dist: Fixed::from_f64(scroll),
axis,
inverted: dev.natural_scrolling.get(),
inverted: dev
.effective
.natural_scrolling_enabled
.get()
.unwrap_or_default(),
}
};
dev.event(ie);