diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-12-10 13:16:50 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-12-10 13:16:50 -0500 |
commit | 5a75c90d0153eb8f57993d17a3a0884ed8eb6907 (patch) | |
tree | 7d18ddf5f1a3fa57122a1b150ec26ed0f3414614 /evdev.c | |
parent | 715a081cf48b1d448cf2535309b7727f4b868308 (diff) |
Feed button events through compositor.
This also generalizes the code to send events to a surface a bit.
Diffstat (limited to 'evdev.c')
-rw-r--r-- | evdev.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |