Add crude input device support.

Just pointer motion and button clicks for now, broadcast to all clients.
This commit is contained in:
Kristian Høgsberg 2008-11-02 10:12:29 -05:00
parent 362a34ed89
commit f9bc795a7d
6 changed files with 274 additions and 12 deletions

View file

@ -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;