From: Kristian Høgsberg Date: Mon, 24 Nov 2008 05:31:49 +0000 (-0500) Subject: Add keyboard input, move input device creation to compositor. X-Git-Tag: 0.1.0~163^2~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12787f22f9fce4676cb2529f200302b512ebd11a;p=platform%2Fupstream%2Flibinput.git Add keyboard input, move input device creation to compositor. --- diff --git a/evdev.c b/evdev.c index ee51e0e..3682321 100644 --- a/evdev.c +++ b/evdev.c @@ -104,6 +104,11 @@ static void wl_input_device_data(int fd, uint32_t mask, void *data) wl_display_post_button_event(device->display, &device->base, 1, value); break; + + default: + wl_display_post_key_event(device->display, + &device->base, e->code, value); + break; } } } @@ -117,9 +122,8 @@ static void wl_input_device_data(int fd, uint32_t mask, void *data) device->x, device->y); } -struct wl_object * -wl_input_device_create(struct wl_display *display, - const char *path, uint32_t id) +WL_EXPORT struct wl_object * +wl_input_device_create(struct wl_display *display, const char *path) { struct wl_input_device *device; struct wl_event_loop *loop;