mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/libinput: rework keyboard interface
The wlr_libinput_input_device now owns its wlr_keyboard, instead of creating a new wlr_libinput_input_device for it.
This commit is contained in:
parent
9dd6e2b905
commit
5eefda1ffe
4 changed files with 83 additions and 70 deletions
|
|
@ -32,8 +32,11 @@ struct wlr_libinput_backend {
|
|||
|
||||
struct wlr_libinput_input_device {
|
||||
struct wlr_input_device wlr_input_device;
|
||||
struct wl_list link;
|
||||
struct libinput_device *handle;
|
||||
|
||||
struct wlr_keyboard keyboard;
|
||||
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
uint32_t usec_to_msec(uint64_t usec);
|
||||
|
|
@ -54,10 +57,9 @@ extern const struct wlr_tablet_impl libinput_tablet_impl;
|
|||
extern const struct wlr_tablet_pad_impl libinput_tablet_pad_impl;
|
||||
extern const struct wlr_touch_impl libinput_touch_impl;
|
||||
|
||||
struct wlr_keyboard *create_libinput_keyboard(
|
||||
struct libinput_device *device);
|
||||
void handle_keyboard_key(struct libinput_event *event,
|
||||
struct libinput_device *device);
|
||||
void init_device_keyboard(struct wlr_libinput_input_device *dev);
|
||||
struct wlr_libinput_input_device *device_from_keyboard(struct wlr_keyboard *kb);
|
||||
void handle_keyboard_key(struct libinput_event *event, struct wlr_keyboard *kb);
|
||||
|
||||
struct wlr_pointer *create_libinput_pointer(
|
||||
struct libinput_device *device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue