|
|
@ -169,6 +169,7 @@ touchup(struct libinput_event *e) |
|
|
|
void |
|
|
|
void |
|
|
|
run() |
|
|
|
run() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
int i; |
|
|
|
struct libinput *li; |
|
|
|
struct libinput *li; |
|
|
|
struct libinput_event *event; |
|
|
|
struct libinput_event *event; |
|
|
|
struct libinput_event_touch *tevent; |
|
|
|
struct libinput_event_touch *tevent; |
|
|
@ -191,6 +192,14 @@ run() |
|
|
|
die("Couldn't set mode to capture events\n"); |
|
|
|
die("Couldn't set mode to capture events\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// E.g. initially invalidate every slot
|
|
|
|
|
|
|
|
for (i = 0; i < MAXSLOTS; i++) { |
|
|
|
|
|
|
|
xend[i] = INVALID; |
|
|
|
|
|
|
|
yend[i] = INVALID; |
|
|
|
|
|
|
|
xstart[i] = INVALID; |
|
|
|
|
|
|
|
ystart[i] = INVALID; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
FD_ZERO(&fdset); |
|
|
|
FD_ZERO(&fdset); |
|
|
|
FD_SET(libinput_get_fd(li), &fdset); |
|
|
|
FD_SET(libinput_get_fd(li), &fdset); |
|
|
|
for (;;) { |
|
|
|
for (;;) { |
|
|
|