mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
Add mode support to libinput backend
And extend tablet example with tilt and ring support
This commit is contained in:
parent
36dcad13d0
commit
bfc0e95d2c
6 changed files with 62 additions and 18 deletions
|
|
@ -73,6 +73,7 @@ struct tablet_pad_state {
|
|||
struct wlr_input_device *device;
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener button;
|
||||
struct wl_listener ring;
|
||||
struct wl_list link;
|
||||
void *data;
|
||||
};
|
||||
|
|
@ -117,6 +118,8 @@ struct compositor_state {
|
|||
uint32_t button, enum wlr_button_state state);
|
||||
void (*pad_button_cb)(struct tablet_pad_state *s,
|
||||
uint32_t button, enum wlr_button_state state);
|
||||
void (*pad_ring_cb)(struct tablet_pad_state *s,
|
||||
uint32_t ring, double position);
|
||||
|
||||
struct wl_display *display;
|
||||
struct wl_event_loop *event_loop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue