1
0
Fork 0
forked from wry/wry

wayland: implement wl_touch

Co-authored-by: Julian Orth <ju.orth@gmail.com>
This commit is contained in:
Amine Hassane 2024-04-21 14:48:26 +01:00 committed by Julian Orth
parent 905e2dd7ba
commit 681c1ad033
35 changed files with 1071 additions and 52 deletions

View file

@ -200,6 +200,50 @@ pub trait Node: 'static {
let _ = kb_state;
}
fn node_on_touch_down(
self: Rc<Self>,
seat: &Rc<WlSeatGlobal>,
time_usec: u64,
id: i32,
x: Fixed,
y: Fixed,
) {
let _ = seat;
let _ = time_usec;
let _ = id;
let _ = x;
let _ = y;
}
fn node_on_touch_up(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, time_usec: u64, id: i32) {
let _ = seat;
let _ = time_usec;
let _ = id;
}
fn node_on_touch_motion(
self: Rc<Self>,
seat: &WlSeatGlobal,
time_usec: u64,
id: i32,
x: Fixed,
y: Fixed,
) {
let _ = seat;
let _ = time_usec;
let _ = id;
let _ = x;
let _ = y;
}
fn node_on_touch_frame(&self, seat: &WlSeatGlobal) {
let _ = seat;
}
fn node_on_touch_cancel(&self, seat: &WlSeatGlobal) {
let _ = seat;
}
fn node_on_button(
self: Rc<Self>,
seat: &Rc<WlSeatGlobal>,