1
0
Fork 0
forked from wry/wry

cli: add seat-test

This commit is contained in:
Julian Orth 2022-06-03 11:49:23 +02:00
parent b20abd28d0
commit 2ced50f3a7
11 changed files with 559 additions and 7 deletions

View file

@ -35,8 +35,21 @@ msg unlock = 8 {
}
msg get_seats = 9 {
}
msg seat_events = 10 {
id: id(jay_seat_events),
}
# events
msg client_id = 0 {
client_id: pod(u64),
}
msg seat = 1 {
id: u32,
name: str,
}

62
wire/jay_seat_events.txt Normal file
View file

@ -0,0 +1,62 @@
# events
msg key = 0 {
seat: u32,
time_usec: pod(u64),
key: u32,
state: u32,
}
msg pointer_abs = 1 {
seat: u32,
time_usec: pod(u64),
x: fixed,
y: fixed,
}
msg pointer_rel = 2 {
seat: u32,
time_usec: pod(u64),
x: fixed,
y: fixed,
dx: fixed,
dy: fixed,
dx_unaccelerated: fixed,
dy_unaccelerated: fixed,
}
msg button = 3 {
seat: u32,
time_usec: pod(u64),
button: u32,
state: u32,
}
msg axis_source = 5 {
source: u32,
}
msg axis_px = 6 {
dist: fixed,
axis: u32,
}
msg axis_stop = 7 {
axis: u32,
}
msg axis_120 = 8 {
dist: i32,
axis: u32,
}
msg axis_frame = 9 {
seat: u32,
time_usec: pod(u64),
}
msg modifiers = 10 {
seat: u32,
modifiers: u32,
group: u32,
}