mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-07 13:29:55 -05:00
Add keyboard input, move input device creation to compositor.
This commit is contained in:
parent
ec8ef722e9
commit
cddc0ad502
5 changed files with 88 additions and 40 deletions
11
wayland.h
11
wayland.h
|
|
@ -90,8 +90,8 @@ int wl_surface_iterator_next(struct wl_surface_iterator *iterator,
|
|||
void wl_surface_iterator_destroy(struct wl_surface_iterator *iterator);
|
||||
|
||||
struct wl_object *
|
||||
wl_input_device_create(struct wl_display *display,
|
||||
const char *path, uint32_t id);
|
||||
wl_input_device_create(struct wl_display *display, const char *path);
|
||||
|
||||
void
|
||||
wl_display_add_object(struct wl_display *display, struct wl_object *object);
|
||||
int
|
||||
|
|
@ -106,6 +106,9 @@ wl_display_post_absolute_event(struct wl_display *display,
|
|||
void
|
||||
wl_display_post_button_event(struct wl_display *display,
|
||||
struct wl_object *source, int button, int state);
|
||||
void
|
||||
wl_display_post_key_event(struct wl_display *display,
|
||||
struct wl_object *source, int key, int state);
|
||||
|
||||
struct wl_compositor {
|
||||
const struct wl_compositor_interface *interface;
|
||||
|
|
@ -137,7 +140,9 @@ struct wl_compositor_interface {
|
|||
void (*notify_pointer_motion)(struct wl_compositor *compositor,
|
||||
struct wl_object *source,
|
||||
int32_t x, int32_t y);
|
||||
|
||||
void (*notify_key)(struct wl_compositor *compositor,
|
||||
struct wl_object *source,
|
||||
uint32_t key, uint32_t state);
|
||||
};
|
||||
|
||||
void wl_display_set_compositor(struct wl_display *display,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue