diff options
author | Stephen Chandler Paul <thatslyude@gmail.com> | 2014-08-07 22:02:22 -0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-08-08 13:12:53 +1000 |
commit | a0c9f1224e26731ae1393c625cf262a11d49db89 (patch) | |
tree | a928830421b408c28318d2e73d90f57f6bb14758 /src/evdev-tablet.h | |
parent | 142cc66880a806fcd6667eeda30ed41769765379 (diff) |
tablet: Add libinput_tool_has_axis() and tests
Because the axes that tool reports can change depending on the tool in use, we
want to be able to provide functionality to determine which axes each tool can
support.
Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev-tablet.h')
-rw-r--r-- | src/evdev-tablet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evdev-tablet.h b/src/evdev-tablet.h index adc3aa4a..cb375771 100644 --- a/src/evdev-tablet.h +++ b/src/evdev-tablet.h @@ -48,6 +48,7 @@ struct tablet_dispatch { unsigned char status; unsigned char changed_axes[NCHARS(LIBINPUT_TABLET_AXIS_CNT)]; double axes[LIBINPUT_TABLET_AXIS_CNT]; + unsigned char axis_caps[NCHARS(LIBINPUT_TABLET_AXIS_CNT)]; /* Only used for tablets that don't report serial numbers */ struct list tool_list; |