[PATCH v2 libinput 3/5] doc: add a graphic illustrating pad vs tool support

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- No changes to v1 doc/svg/tablet-interfaces.svg | 325 ++ doc/tablet-support.dox| 2 + 2 files changed, 327 insertions(+) create mode 100644 doc/svg/tablet-interfaces.svg diff --git a/doc/svg/tablet-interfaces.s

[PATCH v2 libinput 5/5] test: tablet pad tests

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- Adjusted for the new API in 2/5 test/Makefile.am | 7 + test/litest-device-wacom-intuos3-pad.c | 117 + test/litest-device-wacom-intuos5-pad.c | 122 ++ test/litest-int.h | 16 ++ test/litest.c

[PATCH v2 libinput 4/5] pad: implement wacom pad support

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- Adjustments for the new API in 2/5 src/Makefile.am| 1 + src/evdev-tablet-pad.c | 614 + src/evdev-tablet-pad.h | 69 ++ src/evdev.c| 28 ++- src/evdev.h| 13 ++ src/libinpu

[PATCH v2 libinput 2/5] Add the LIBINPUT_DEVICE_CAP_TABLET_PAD capability and matching interface

2016-04-10 Thread Peter Hutterer
This interface handles the buttons on the physical tablet itself, including the touch ring and the strip. A notable difference to other libinput interfaces here is that we do not use linux/input.h event codes for buttons. Instead, the buttons are merely numbered sequentially, starting at button 1.

[PATCH v2 libinput 1/5] tablet: move the libwacom check for left-handed-ness into a helper function

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- Changes since v1: - new in this version src/evdev-tablet.c | 38 +- src/evdev.c| 52 src/evdev.h| 3 +++ 3 files changed, 56 insertions(+), 37 deletions(-)

[PATCH v2 libinput 0/5] Add tablet pad support

2016-04-10 Thread Peter Hutterer
Second version of the tablet pad support patches. The main change is switching from button codes to simple button numbers. This is motivated by the fact that most buttons don't have any actual meaning and the only reason we have something other than BTN_0, BTN_1 etc is that we run out of space in

[PATCH libinput 2/4] evdev: check the button scrolling state instead of the hw button state

2016-04-10 Thread Peter Hutterer
The state of button scrolling should determine whether we filter the event, not the hardware button state. Signed-off-by: Peter Hutterer --- src/evdev.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 9be4a96..e272f4b 100644 --- a/src/

[PATCH libinput 3/4] evdev: enable middle-button scrolling on middle-button emulation

2016-04-10 Thread Peter Hutterer
https://bugs.freedesktop.org/show_bug.cgi?id=94856 Signed-off-by: Peter Hutterer --- src/evdev.c| 107 - src/evdev.h| 2 +- test/pointer.c | 53 3 files changed, 114 insertions(+), 48 deletions(-) di

[PATCH libinput 4/4] test: add test to ensure MB emulation doesn't start while the MB is down

2016-04-10 Thread Peter Hutterer
We already handle the case where we have MB emulation active and a middle button is pressed because we often don't know if we have a middle button on the device. But the other way round makes little sense, when a physical middle button is down emulation should not engage. Test for this. Signed-of

[PATCH libinput 1/4] evdev: if we have a quick scroll button release, skip middle button emulation

2016-04-10 Thread Peter Hutterer
The only difference between evdev_pointer_notify_physical_button() and evdev_pointer_notify_button() is that the former filters out middle button emulations where applicable. Doing so effectively disables using a button for scrolling that is also used for middle button emulation. This is intention

Re: [PATCH libinput 1/3] test: Handle 32 bit msec time overflows

2016-04-10 Thread Peter Hutterer
On Fri, Apr 08, 2016 at 03:51:26PM +0800, Jonas Ã…dahl wrote: > The libinput_*_get_time() returns a 32 bit unsigned integer, but in the > tests we compared them to a 64 bit unsigned integer. This means that > when the 32 bit integer overflowed, we'd still compare to a > non-overflowed 64 bit integer

[PATCH libinput] tablet: fix the airbrush slider range

2016-04-10 Thread Peter Hutterer
Supposed to be [-1, 1] but we only generated [0, 1] Reported-by: Carlos Garnacho Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 2 +- test/tablet.c | 10 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 9a1ac52