1
0
Fork 0
forked from wry/wry

ei: implement ei_touchscreen v2

This commit is contained in:
Julian Orth 2024-11-27 13:15:56 +01:00
parent 1495cc1f22
commit f27e4253a1
6 changed files with 43 additions and 5 deletions

View file

@ -197,6 +197,19 @@ impl EiSeat {
}
}
pub fn handle_touch_cancel(&self, id: u32) {
if self.is_sender() {
return;
}
if let Some(b) = self.touchscreen.get() {
if self.client.versions.ei_touchscreen() >= EiVersion(2) {
b.send_cancel(id);
} else {
b.send_up(id);
}
}
}
pub fn handle_touch_frame(&self, time_usec: u64) {
if self.is_sender() {
return;