mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
implement tablet tool devices
This commit is contained in:
parent
0dc3aecfd4
commit
df0ee7f25f
5 changed files with 69 additions and 9 deletions
|
|
@ -175,9 +175,9 @@ static void handle_input_add(struct compositor_state *state, struct
|
|||
wlr_input_device *device) {
|
||||
struct sample_state *sample = state->data;
|
||||
|
||||
// TODO handle other input devices
|
||||
if (device->type == WLR_INPUT_DEVICE_POINTER ||
|
||||
device->type == WLR_INPUT_DEVICE_TOUCH) {
|
||||
device->type == WLR_INPUT_DEVICE_TOUCH ||
|
||||
device->type == WLR_INPUT_DEVICE_TABLET_TOOL) {
|
||||
struct sample_input_device *s_device;
|
||||
s_device = calloc(1, sizeof(struct sample_input_device));
|
||||
s_device->device = device;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue