mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 16:00:06 +02:00
Feed button events through compositor.
This also generalizes the code to send events to a surface a bit.
This commit is contained in:
parent
9a0f4ebce6
commit
800cdae9af
1 changed files with 8 additions and 0 deletions
8
evdev.c
8
evdev.c
|
|
@ -42,10 +42,18 @@ struct wl_input_device {
|
||||||
static const struct wl_method input_device_methods[] = {
|
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 = {
|
static const struct wl_interface input_device_interface = {
|
||||||
"input_device", 1,
|
"input_device", 1,
|
||||||
ARRAY_LENGTH(input_device_methods),
|
ARRAY_LENGTH(input_device_methods),
|
||||||
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)
|
static void wl_input_device_data(int fd, uint32_t mask, void *data)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue