mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
backend/libinput: rework switch interface
The wlr_libinput_input_device now owns its wlr_switch, instead of creating a new wlr_libinput_input_device for it.
This commit is contained in:
parent
d60cdad3ea
commit
d750c5ac67
4 changed files with 44 additions and 45 deletions
|
|
@ -36,6 +36,7 @@ struct wlr_libinput_input_device {
|
|||
|
||||
struct wlr_keyboard keyboard;
|
||||
struct wlr_pointer pointer;
|
||||
struct wlr_switch switch_device;
|
||||
|
||||
struct wl_list link;
|
||||
};
|
||||
|
|
@ -89,10 +90,11 @@ void handle_pointer_hold_begin(struct libinput_event *event,
|
|||
void handle_pointer_hold_end(struct libinput_event *event,
|
||||
struct wlr_pointer *pointer);
|
||||
|
||||
struct wlr_switch *create_libinput_switch(
|
||||
struct libinput_device *device);
|
||||
void init_device_switch(struct wlr_libinput_input_device *dev);
|
||||
struct wlr_libinput_input_device *device_from_switch(
|
||||
struct wlr_switch *switch_device);
|
||||
void handle_switch_toggle(struct libinput_event *event,
|
||||
struct libinput_device *device);
|
||||
struct wlr_switch *switch_device);
|
||||
|
||||
struct wlr_touch *create_libinput_touch(
|
||||
struct libinput_device *device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue