mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
Add crude input device support.
Just pointer motion and button clicks for now, broadcast to all clients.
This commit is contained in:
parent
362a34ed89
commit
f9bc795a7d
6 changed files with 274 additions and 12 deletions
|
|
@ -31,6 +31,9 @@ wl_event_loop_add_fd(struct wl_event_loop *loop,
|
|||
struct epoll_event ep;
|
||||
|
||||
source = malloc(sizeof *source);
|
||||
if (source == NULL)
|
||||
return NULL;
|
||||
|
||||
source->fd = fd;
|
||||
source->func = func;
|
||||
source->data = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue