mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
implement tablet tool devices
This commit is contained in:
parent
0dc3aecfd4
commit
df0ee7f25f
5 changed files with 69 additions and 9 deletions
|
|
@ -25,6 +25,11 @@ struct wlr_cursor {
|
|||
struct wl_signal touch_down;
|
||||
struct wl_signal touch_motion;
|
||||
struct wl_signal touch_cancel;
|
||||
|
||||
struct wl_signal tablet_tool_axis;
|
||||
struct wl_signal tablet_tool_proximity;
|
||||
struct wl_signal tablet_tool_tip;
|
||||
struct wl_signal tablet_tool_button;
|
||||
} events;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ enum wlr_tablet_tool_axes {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_tool_axis {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint64_t time_usec;
|
||||
uint32_t updated_axes;
|
||||
|
|
@ -51,6 +52,7 @@ enum wlr_tablet_tool_proximity_state {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_tool_proximity {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint64_t time_usec;
|
||||
double x, y;
|
||||
|
|
@ -64,6 +66,7 @@ enum wlr_tablet_tool_tip_state {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_tool_tip {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint64_t time_usec;
|
||||
double x, y;
|
||||
|
|
@ -72,6 +75,7 @@ struct wlr_event_tablet_tool_tip {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_tool_button {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint64_t time_usec;
|
||||
uint32_t button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue