From: Kristian Høgsberg Date: Wed, 10 Dec 2008 18:16:50 +0000 (-0500) Subject: Feed button events through compositor. X-Git-Tag: 0.1.0~163^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=800cdae9af7551c0550d2def26ce1697acf42dc3;p=platform%2Fupstream%2Flibinput.git Feed button events through compositor. This also generalizes the code to send events to a surface a bit. --- diff --git a/evdev.c b/evdev.c index beba634..beeca29 100644 --- a/evdev.c +++ b/evdev.c @@ -42,10 +42,18 @@ struct wl_input_device { static const struct wl_method input_device_methods[] = { }; +static const struct wl_event input_device_events[] = { + { "motion", "ii" }, + { "button", "uu" }, + { "key", "uu" }, +}; + static const struct wl_interface input_device_interface = { "input_device", 1, ARRAY_LENGTH(input_device_methods), input_device_methods, + ARRAY_LENGTH(input_device_events), + input_device_events, }; static void wl_input_device_data(int fd, uint32_t mask, void *data)