aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-28 08:42:39 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-28 10:23:14 -0400
commitdf0ee7f25ff628360f38d87b8a74daaa2cc742a8 (patch)
treebc19522dd936ae5f4da83bd0f143218b91fa2a61 /examples/pointer.c
parent0dc3aecfd4db39953503ccdc82ab44ace03c7f44 (diff)
implement tablet tool devices
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index 98b4735a..3863c0e8 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -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;