[PATCH libinput v2 8/8] tablet: Add tests for axes on proximity events

2015-02-17 Thread Stephen Chandler Paul
--- test/tablet.c | 134 ++ 1 file changed, 134 insertions(+) Changes - Check that the axes are still present on the proximity out events, and make sure that they haven't changed - Don't use a loop when

[PATCH libinput v2 6/8] tablet: Include starting values of axes in proximity events

2015-02-17 Thread Stephen Chandler Paul
each axis on the tablet. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 38 ++ src/libinput-private.h | 1 + src/libinput.c | 7 ++- src/libinput.h | 10 +++--- test/tablet.c | 8 tools/event-de

[PATCH libinput 2/8 v2] tablet: Add a left handed mode and tests

2015-02-16 Thread Stephen Chandler Paul
or it to match up with the screen properly. This is where left handed mode comes in. When enabled, it reverses all the coordinates so that the tablet may be rotated, and the palm rest on the tablet moved over to the left side. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c

[PATCH libinput 8/8] tablet: Add tests for axes on proximity events

2015-02-16 Thread Stephen Chandler Paul
--- test/tablet.c | 77 +++ 1 file changed, 77 insertions(+) diff --git a/test/tablet.c b/test/tablet.c index 8074e4e..bf78e12 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -154,6 +154,82 @@ START_TEST(proximity_out_clear_buttons) } EN

[PATCH libinput 5/8] event-debug: Increase spacing after the event-type

2015-02-16 Thread Stephen Chandler Paul
TABLET_PROXIMITY events cause many terminals to push every column to the right by one additional tab, this just increases the space after the event type so that everything lines up again. Signed-off-by: Stephen Chandler Paul --- tools/event-debug.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH libinput 3/8] tablet: Make note of filtering out events while the tool is out of proximity

2015-02-16 Thread Stephen Chandler Paul
nding distance events with incorrect values in them. As such, it's a good idea not to forward any axis events from evdev until we know that the tool is within usable proximity. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 5 + 1 file changed, 5 insertions(+) diff --git a

[PATCH libinput 7/8] tablet: Update motion_event_state test to use litest_tablet_motion()

2015-02-16 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tablet.c b/test/tablet.c index d67d954..8074e4e 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -376,7 +376,7 @@ START_TEST(motion_event_state

[PATCH libinput 6/8] tablet: Include starting values of axes in proximity events

2015-02-16 Thread Stephen Chandler Paul
each axis on the tablet. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 39 +++ src/libinput-private.h | 1 + src/libinput.c | 7 ++- src/libinput.h | 10 +++--- test/tablet.c | 8 tools/event-de

[PATCH libinput 4/8] tablet: Merge PROXIMITY_IN and PROXIMITY_OUT into a single event

2015-02-16 Thread Stephen Chandler Paul
There isn't much purpose in having proximity in and out as different events, combining them into one single event is more consistent with the rest of the API, and means less code for clients to have to work with. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c

[PATCH libinput 1/8] tablet: Set the tool as out of proximity by default when we initialize a tablet

2015-02-16 Thread Stephen Chandler Paul
(it may as well be anyway, since we haven't processed any proximity in events from evdev just yet) Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index fe09efc..3d8363c 100644 --- a/src

[PATCH libinput] Tablet: Remove leftover-comment

2015-02-15 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index f80d642..fe09efc 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -411,12 +411,7 @@ sanitize_tablet_axes

[PATCH libinput] tablet: Add a left handed mode and tests

2015-01-20 Thread Stephen Chandler Paul
or it to match up with the screen properly. This is where left handed mode comes in. When enabled, it reverses all the coordinates so that the tablet may be rotated, and the palm rest on the tablet moved over to the left side. Signed-off-by: Stephen Chandler

[PATCH libinput] tablet: Add a left handed mode and tests

2015-01-19 Thread Stephen Chandler Paul
or it to match up with the screen properly. This is where left handed mode comes in. When enabled, it reverses all the coordinates so that the tablet may be rotated, and the palm rest on the tablet moved over to the left side. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c

[PATCH libinput] evdev.c: Return from evdev_configure_device() after configuring a device as a tablet

2015-01-19 Thread Stephen Chandler Paul
or such as left-handed mode being enabled by default. Signed-off-by: Stephen Chandler Paul --- src/evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/evdev.c b/src/evdev.c index 939d266..defd004 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1448,6 +1448,7 @@ evdev_configure_dev

[PATCH v3 libinput 2/2] Rename functions for left handed device configurations

2015-01-06 Thread Stephen Chandler Paul
coordinates of the tablets in addition to flipping the buttons on the tablet. As such, renaming these functions so that they aren't specific to devices where only the buttons are flipped seems appropriate. Signed-off-by: Stephen Chandler Paul --- Fixed the naming scheme and changed it

[PATCH v2 libinput 2/2] Rename functions for left handed device configurations

2015-01-06 Thread Stephen Chandler Paul
coordinates of the tablets in addition to flipping the buttons on the tablet. As such, renaming these functions so that they aren't specific to devices where only the buttons are flipped seems appropriate. Signed-off-by: Stephen Chandler Paul --- Sorry about all of that! Just getting back int

[PATCH libinput 0/2] Patches to prepare for left-handed tablet mode

2015-01-05 Thread Stephen Chandler Paul
lefty mode for tablets. Cheers, Stephen Chandler Paul Stephen Chandler Paul (2): libinput.h: Fix some line wrapping in documentation Rename functions for left handed device configurations src/evdev-mt-touchpad.c | 4 ++-- src/evdev.c | 34 ++

[PATCH libinput 2/2] Rename functions for left handed device configurations

2015-01-05 Thread Stephen Chandler Paul
Some devices require more then just flipping around the buttons, such as tablets. --- src/evdev-mt-touchpad.c | 4 ++-- src/evdev.c | 34 +++--- src/evdev.h | 12 +-- src/libinput.c | 14 ++--- src/libinput.h | 55 +

[PATCH libinput 1/2] libinput.h: Fix some line wrapping in documentation

2015-01-05 Thread Stephen Chandler Paul
--- src/libinput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libinput.h b/src/libinput.h index 56b77c2..7719b8c 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -2141,8 +2141,8 @@ libinput_device_config_buttons_get_left_handed(struct libinput_device *device);

Re: [PATCH weston 00/19] Basic tablet support in Weston

2014-08-21 Thread Stephen Chandler Paul
On Tue, 2014-08-19 at 16:57 +0300, Pekka Paalanen wrote: > On Tue, 19 Aug 2014 13:21:54 +0200 > Jonas Ådahl wrote: > > > On Tue, Aug 19, 2014 at 01:03:52PM +0300, Pekka Paalanen wrote: > > > On Wed, 6 Aug 2014 19:07:50 -0400 > > > Stephen Chandler Paul wrote:

[PATCH libinput v3] tablet: Add libinput_tool_has_axis() and tests

2014-08-07 Thread Stephen Chandler Paul
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 --- = Changes = * Fixed the line width in test/tablet.c * Removed

[PATCH libinput v3] tablet: Use separate tool objects for tools without serials

2014-08-07 Thread Stephen Chandler Paul
out serial numbers in a list that's local to the tablet they belong to, and keep tools with serials in a list that's local to the libinput context. Signed-off-by: Stephen Chandler Paul --- Changes (forgot to make these with the last patch, sorry!): - Add comment to explain why we use

[PATCH libinput 1/2 v2] tablet: Use separate tool objects for tools without serials

2014-08-07 Thread Stephen Chandler Paul
out serial numbers in a list that's local to the tablet they belong to, and keep tools with serials in a list that's local to the libinput context. Signed-off-by: Stephen Chandler Paul --- Changes: - Added a description to the patch - Fixed all of the memory leaks, passes ma

[PATCH libinput 2/2 v2] tablet: Add libinput_tool_has_axis() and tests

2014-08-07 Thread Stephen Chandler Paul
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 --- Changes: - Added a description to the patch - Fixed all of the memory

[PATCH libinput 1/2] tablet: Use separate tool objects for tools without serials

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 32 -- src/evdev-tablet.h | 4 +++ test/tablet.c | 79 ++ 3 files changed, 107 insertions(+), 8 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev

[PATCH libinput 2/2] tablet: Add libinput_tool_has_axis() and tests

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 42 +++ src/evdev-tablet.h | 1 + src/libinput-private.h | 1 + src/libinput.c | 7 ++ src/libinput.h | 26 +++ test/tablet.c | 68

[PATCH weston 16/19] client: Add support for pressure, distance, and tilt into libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/window.c | 45 ++--- clients/window.h | 25 + 2 files changed, 67 insertions(+), 3 deletions(-) diff --git a/clients/window.c b/clients/window.c index 7b844f8..3896b31 100644 --- a

[PATCH weston 08/19] client: Add support for tool objects in libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/window.c | 90 ++-- clients/window.h | 20 + 2 files changed, 108 insertions(+), 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index 325c3f2..6001b55 100644 --- a

[PATCH weston 10/19] tablet: Add support for button presses to weston

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/compositor.h | 6 ++ src/input.c | 39 ++- src/libinput-device.c | 23 +++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/src/compositor.h b/src/compositor.h

[PATCH weston 19/19] tablet: Add demo application for tablets

2014-08-06 Thread Stephen Chandler Paul
This is just a hacked version of clickdot that responds to tablet events instead of cursor events Signed-off-by: Stephen Chandler Paul --- .gitignore | 1 + Makefile.am | 8 ++ clients/tablet.c | 341 +++ 3 files changed, 350

[PATCH weston 15/19] tablet: Add support for reporting pressure, distance, and tilt in weston

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/compositor.h | 13 + src/input.c | 81 +++ src/libinput-device.c | 57 3 files changed, 146 insertions(+), 5 deletions(-) diff --git a/src

[PATCH weston 06/19] client: Add tablet cursor support into libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
Again, a lot of this is code that has been reused from the cursor code for pointers. Signed-off-by: Stephen Chandler Paul --- clients/window.c | 140 +-- clients/window.h | 14 +++--- 2 files changed, 144 insertions(+), 10 deletions(-) diff

[PATCH weston 05/19] tablet: Add support for setting/changing the tablet cursor in weston

2014-08-06 Thread Stephen Chandler Paul
Most of this code is just reused from the code for the pointer cursor, with slight modifications to make it work with tablets. Signed-off-by: Stephen Chandler Paul --- src/compositor.h | 10 src/input.c | 147 ++- 2 files changed

[PATCH weston 17/19] tablet: Add tablet support to the top panel of the desktop shell

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/desktop-shell.c | 55 + 1 file changed, 55 insertions(+) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index 73b2134..a27910f 100644 --- a/clients/desktop-shell.c +++ b/clients

[PATCH weston 18/19] tablet: Add binding to activate surfaces using the tablet tool

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- desktop-shell/shell.c | 14 ++ src/bindings.c| 37 + src/compositor.c | 1 + src/compositor.h | 16 src/input.c | 7 +++ 5 files changed, 75 insertions

[PATCH weston 07/19] tablet: Add support for tablet tool objects

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/compositor.h | 16 ++ src/input.c | 86 +-- src/libinput-device.c | 72 ++ 3 files changed, 171 insertions(+), 3 deletions(-) diff --git a

[PATCH weston 12/19] tablet: Add support for up/down events to weston

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/compositor.h | 8 +++ src/input.c | 65 +-- src/libinput-device.c | 7 +- 3 files changed, 77 insertions(+), 3 deletions(-) diff --git a/src/compositor.h b/src/compositor.h

[PATCH weston 13/19] client: Add up/down event support into libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/window.c | 43 +-- clients/window.h | 14 ++ 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index dd9b822..83459eb 100644 --- a/clients

[PATCH weston 11/19] client: Add support for handling button presses to libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/window.c | 24 +++- clients/window.h | 10 ++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 727e3f0..dd9b822 100644 --- a/clients/window.c +++ b/clients

[PATCH weston 09/19] client: Add support for tablet cursor motion to window frames in libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
ff-by: Stephen Chandler Paul --- clients/window.c| 15 +++ shared/cairo-util.h | 4 shared/frame.c | 38 ++ 3 files changed, 57 insertions(+) diff --git a/clients/window.c b/clients/window.c index 6001b55..727e3f0 100644 --- a/cl

[PATCH weston 14/19] tablet: Add support for moving windows around using the stylus

2014-08-06 Thread Stephen Chandler Paul
Changing the pointer to the appropriate image while moving the stylus around isn't supported yet. Signed-off-by: Stephen Chandler Paul --- clients/window.c | 27 + desktop-shell/shell.c | 268 ++ src/compositor.h | 5 +

[PATCH weston 02/19] tablet: Add initial tablet support to weston

2014-08-06 Thread Stephen Chandler Paul
This only adds support for reporting motion events, proximity_in events (without the tool object information), proximity_out events and frame events. Signed-off-by: Stephen Chandler Paul --- src/compositor.h | 97 src/input.c | 312

[PATCH weston 01/19] tablet: Add XML for wl_tablet and wl_tablet_manager

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- Makefile.am | 15 ++- protocol/wayland-tablet.xml | 310 2 files changed, 321 insertions(+), 4 deletions(-) create mode 100644 protocol/wayland-tablet.xml diff --git a/Makefile.am b

[PATCH weston 00/19] Basic tablet support in Weston

2014-08-06 Thread Stephen Chandler Paul
nt, so we can tell if the tablet tool is leaving proximity to switch focus to another surface, or if it's just exiting proximity. Review/critique would be appreciated, thank you! ^^ Cheers, Lyude Stephen Chandler Paul (19): tablet: Add XML for wl_tablet and wl_tablet_manager tab

[PATCH weston 03/19] client: Add support for handling motion events in toytoolkit

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/window.c | 201 +++ clients/window.h | 19 ++ 2 files changed, 220 insertions(+) diff --git a/clients/window.c b/clients/window.c index 85e5de8..90a2e28 100644 --- a/clients/window.c +++ b

[PATCH weston 04/19] client: Add support for handling proximity_in/out events in libtoytoolkit

2014-08-06 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- clients/window.c | 48 +++- clients/window.h | 12 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 90a2e28..ab4ae85 100644 --- a/clients

[PATCH libinput 1/2] tablet: Add libinput_tablet_has_axis()

2014-08-05 Thread Stephen Chandler Paul
Checks whether or not the tablet can report the specified axis, so callers can get an idea of a tablet's capabilities. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 8 src/evdev.h| 3 +++ src/libinput.c | 14 ++ src/libinput.h

[PATCH libinput 2/2] tablet: Add libinput_tool_get/set_user_data()

2014-08-05 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/libinput-private.h | 1 + src/libinput.c | 13 + src/libinput.h | 23 +++ 3 files changed, 37 insertions(+) diff --git a/src/libinput-private.h b/src/libinput-private.h index 6ec3637..8187564 100644

[PATCH libinput v2] tablet: fix get_x_transformed() and get_y_transformed()

2014-07-20 Thread Stephen Chandler Paul
patch: - Basically just scrapped the other one and rewrote it. We don't keep track of both the raw x and y plus the millimeter x and y anymore. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 5 ++--- src/libinput.c | 20 ++-- 2 files changed, 20 inser

[PATCH libinput] tablet: fix get_x_transformed() and get_y_transformed()

2014-07-20 Thread Stephen Chandler Paul
, instead of scaling the axis values in raw coordinates. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 13 + src/evdev-tablet.h | 2 ++ src/libinput-private.h | 8 src/libinput.c | 26 -- 4 files changed, 43 insertions

[PATCH libinput 2/2] tablet: Add TABLET_FRAME event

2014-07-13 Thread Stephen Chandler Paul
This event is used to signify the end of a sequence of events from the tablet. This is required since the wayland protocol for tablets also has a frame event, and it's impossible to tell where an event frame ends if libinput doesn't tell us. Signed-off-by: Stephen Chandler Paul ---

[PATCH libinput 1/2] tablet: Don't swap X and Y in evcode_to_axis()

2014-07-13 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.h b/src/evdev-tablet.h index 74447bd..1b53d20 100644 --- a/src/evdev-tablet.h +++ b/src/evdev-tablet.h @@ -75,10 +75,10 @@ evcode_to_axis(const

[PATCH libinput] tablet: Don't swap X and Y in evcode_to_axis()

2014-07-10 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.h b/src/evdev-tablet.h index 74447bd..1b53d20 100644 --- a/src/evdev-tablet.h +++ b/src/evdev-tablet.h @@ -75,10 +75,10 @@ evcode_to_axis(const

[PATCH libinput] tablet: Rename TILT_VERTICAL and TILT_HORIZONTAL to TILT_X and TILT_Y

2014-07-08 Thread Stephen Chandler Paul
Since the orientation of the tablet can potentially change, this naming scheme makes a lot more sense then VERTICAL and HORIZONTAL does since they don't reflect the actual physical movement. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 4 ++-- src/evdev-tablet.h

[PATCH libinput v3 1/5] tablet: Stop redundant proximity-out events from being reported

2014-06-26 Thread Stephen Chandler Paul
t in a row instead of just one. In addition, the bad distance events test has been modified to pick up on this. We shouldn't be receiving /any/ events when we get false distance events from evdev anyway. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 12 src/evde

[PATCH libinput 4/5] tablet: copy the axis state into the tablet event

2014-06-26 Thread Stephen Chandler Paul
From: Peter Hutterer The tablet state updates with each event during libinput_dispatch(), but the state in the event must reflect the state at the time of the event. Signed-off-by: Peter Hutterer Signed-off-by: Stephen Chandler Paul --- src/libinput.c | 5 ++-- test/tablet.c | 83

[PATCH libinput v2 5/5] tablet: Include axes with all events

2014-06-26 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 11 +-- src/libinput-private.h | 7 +-- src/libinput.c | 14 -- src/libinput.h | 3 --- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev

[PATCH libinput v2 3/5] tablet: Include tool with all events

2014-06-26 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- src/evdev-tablet.c | 41 ++--- src/evdev-tablet.h | 13 ++--- src/libinput-private.h | 5 - src/libinput.c | 10 -- src/libinput.h | 19

[PATCH libinput 2/5] tablet: Remove tablet_notify_tool() and add tablet_get_tool()

2014-06-26 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 50 ++ src/evdev-tablet.h | 3 ++- src/libinput-private.h | 6 +++--- src/libinput.c | 28 ++-- src/libinput.h | 27

[PATCH libinput v2] tablet: Include axes with all events

2014-06-25 Thread Stephen Chandler Paul
Forgot to update the documentation for libinput_event_tablet_get_axis(), fixed Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 11 +-- src/libinput-private.h | 7 +-- src/libinput.c | 10 -- src/libinput.h | 3 --- 4 files changed, 22

[PATCH libinput 5/5] tablet: Include axes with all events

2014-06-25 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 11 +-- src/libinput-private.h | 7 +-- src/libinput.c | 10 -- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index c754060..de8d8cb 100644

[PATCH libinput 3/5] tablet: Include tool with all events

2014-06-25 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 41 ++--- src/evdev-tablet.h | 13 ++--- src/libinput-private.h | 5 - src/libinput.c | 10 -- src/libinput.h | 13 - 5 files changed, 48

[PATCH libinput 4/5] tablet: remove libinput_tool_(un)ref()

2014-06-25 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 1 - src/libinput-private.h | 1 - src/libinput.c | 19 +-- src/libinput.h | 30 +++--- 4 files changed, 4 insertions(+), 47 deletions(-) diff --git a/src/evdev-tablet.c b

[PATCH libinput v2 2/5] tablet: Replace tool-update with proximity-in

2014-06-25 Thread Stephen Chandler Paul
-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 50 ++ src/evdev-tablet.h | 3 ++- src/libinput-private.h | 6 +++--- src/libinput.c | 28 ++-- src/libinput.h | 27

[PATCH libinput v2 1/5] tablet: Stop redundant proximity-out events from being reported

2014-06-25 Thread Stephen Chandler Paul
t in a row instead of just one. In addition, the bad distance events test has been modified to pick up on this. We shouldn't be receiving /any/ events when we get false distance events from evdev anyway. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 12 src/evde

[PATCH libinput 1/3] tablet: Stop redundant proximity-out events from being reported

2014-06-24 Thread Stephen Chandler Paul
t in a row instead of just one. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 12 src/evdev-tablet.h | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index a6acca4..584b49e 100644 --- a/src/evdev-tablet.c

[PATCH libinput 3/3] tablet: Fix warnings in test/tablet.c

2014-06-24 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tablet.c b/test/tablet.c index 0f0728e..105a216 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -550,7 +550,7 @@ START_TEST(pad_buttons_ignored

[PATCH libinput 2/3] tablet: Replace tool-update with proximity-in

2014-06-24 Thread Stephen Chandler Paul
-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 62 +++--- src/evdev-tablet.h | 5 +++- src/libinput-private.h | 6 ++--- src/libinput.c | 28 +++ src/libinput.h | 27 +++--- test

wl_tablet specification draft

2014-06-24 Thread Chandler Paul
Hello! As you all know I've been working on adding drawing tablet support to the Wayland protocol. Now that we've added support for tablets to libinput, the next step is writing the actual protocol that will be implemented by the compositor. Following this blurb is the current draft of the tablet p

[PATCH libinput] touchpad: Fix typo in documentation

2014-06-24 Thread Stephen Chandler Paul
"a a left and…"->"a left and…" Signed-off-by: Stephen Chandler Paul --- src/libinput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput.h b/src/libinput.h index b1b1124..a928b2b 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -

[PATCH libinput 2/4] evdev: Add tablet_mark_all_axes_changed()

2014-06-18 Thread Stephen Chandler Paul
Occasionally all the axes that are valid for a device need to be marked as updated for the caller's sake. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/evdev-tablet.c b/src/

[PATCH libinput 4/4] test: Add tests for serial numbers on tools

2014-06-18 Thread Stephen Chandler Paul
ial number (-1 is used for special purposes by the linuxwacom driver). Signed-off-by: Stephen Chandler Paul --- test/litest-wacom-cintiq-tablet.c | 2 +- test/litest-wacom-intuos-tablet.c | 2 +- test/litest.h | 1 + test/tablet.c

[PATCH libinput 1/4] evdev: Continue updating axes internally when tool leaves proximity

2014-06-18 Thread Stephen Chandler Paul
(). The tool is now counted as back in proximity when a tool update is received instead of when an axis update is received. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 67 +++--- src/evdev-tablet.h | 9 2 files changed, 33

[PATCH libinput 3/4] evdev: Update all axes when the tool comes back into proximity

2014-06-18 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 52499fd..4efb36c 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -85,6 +85,7

[PATCH libinput] tablet: Handle button-events

2014-06-13 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 113 + src/evdev-tablet.h | 12 +- src/libinput-private.h | 5 +++ src/libinput.c | 55 src/libinput.h | 51

[PATCH libinput] Emit LIBINPUT_TABLET_EVENT_TOOL_UPDATE events on tool changes

2014-06-13 Thread Stephen Chandler Paul
ff-by: Stephen Chandler Paul --- src/evdev-tablet.c | 95 ++ src/evdev-tablet.h | 6 +++- src/libinput-private.h | 7 src/libinput.c | 41 ++ src/libinput.h | 35 +-- 5 files changed

[PATCH libinput 15/23] test: Add litest_assert_double_*() macros

2014-06-12 Thread Stephen Chandler Paul
Converts two doubles to 24.8 fixed-width integers so assertions can be made with doubles in tests Signed-off-by: Stephen Chandler Paul --- test/litest.h | 17 + 1 file changed, 17 insertions(+) diff --git a/test/litest.h b/test/litest.h index ec7026f..90cd68d 100644 --- a/test

[PATCH libinput 22/23] test: Add bad-distance-events test

2014-06-12 Thread Stephen Chandler Paul
um, but no other events. Since that gives the caller the false impression that the tablet is actually in useful proximity of the tablet, we want to make sure we filter out any events like this. Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 42 ++ 1

[PATCH libinput 21/23] test: Add motion event test for tablets

2014-06-12 Thread Stephen Chandler Paul
Based off the patch originally written by Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 65 ++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/test/tablet.c b/test/tablet.c index 9c5397f..80a70c8

[PATCH libinput 23/23] test: Add tests for normalization

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 147 ++ 1 file changed, 147 insertions(+) diff --git a/test/tablet.c b/test/tablet.c index e503124..7da84ef 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -322,6 +322,152

[PATCH libinput 17/23] test: Add Wacom Cintiq 12WX device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/Makefile.am | 1 + test/litest-wacom-cintiq-tablet.c | 136 ++ test/litest.c | 2 + 3 files changed, 139 insertions

[PATCH libinput 18/23] test: Add Wacom Intuos5 touch M Pen device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/Makefile.am | 1 + test/litest-wacom-intuos-tablet.c | 134 ++ test/litest.c | 2 + 3 files changed, 137 insertions

[PATCH libinput 19/23] test: Add Wacom ISDv4 E6 Pen device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/Makefile.am | 1 + test/litest-wacom-isdv4-tablet.c | 98 test/litest.c| 2 + 3 files changed, 101 insertions

[PATCH libinput 20/23] test: Add proximity-in-out and proximity-out-clear-buttons tests

2014-06-12 Thread Stephen Chandler Paul
This tests to make sure proximity events actually work, that they don't output cooirdinate events after they occur, and that they make sure to release all of the buttons and clear the values of all the axes Based off the patch originally written by Carlos Garnacho Signed-off-by: Stephen Cha

[PATCH libinput 16/23] test: Add Wacom Bamboo 16FG 4x5 Pen device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- Changes --- - Initialized unused fields in absinfo[] for each axis. This fixes complaints gcc gives about empty initializers. Same goes for the next 3 patches

[PATCH libinput 02/23] evdev: Add basic support for tablet devices

2014-06-12 Thread Stephen Chandler Paul
originally written by Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- src/Makefile.am| 2 + src/evdev-tablet.c | 170 + src/evdev-tablet.h | 64 +++ src/evdev.c| 8 +++ src/evdev.h

[PATCH libinput 10/23] tools: handle tablet button events in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tools/event-debug.c b/tools/event-debug.c index 90cdd64..13b86a4 100644 --- a/tools/event-debug.c +++ b/tools

[PATCH libinput 01/23] Add LIBINPUT_DEVICE_CAP_TABLET libinput_device_capability value

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho This capability flag would be enabled when events are driven through a stylus, ie. on a tablet. Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- src/evdev.c| 2 ++ src/evdev.h| 3 ++- src/libinput.h | 3 ++- 3

[PATCH libinput 05/23] Emit LIBINPUT_TABLET_EVENT_TOOL_UPDATE events on tool changes

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 100 + src/evdev-tablet.h | 6 ++- src/libinput-private.h | 5 +++ src/libinput.c | 40 src/libinput.h | 35 - 5 files

[PATCH libinput 11/23] tablet: Report and normalize distance, pressure, and tilt axes

2014-06-12 Thread Stephen Chandler Paul
Report the values for the distance, pressure, and tilt axes. Pressure is normalized to a range of 0 to 1, and tilt is normalized to a range of -1 to 1. Based off the patch originally written by Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 35

[PATCH libinput 03/23] tools: handle TABLET_EVENT_AXIS in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 38 -- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/tools/event-debug.c b/tools/event-debug.c index 864f77e..5202fc9 100644 --- a/tools/event-debug.c

[PATCH libinput 13/23] tools: Handle pressure, tilt, and distance in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 12 1 file changed, 12 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index 13b86a4..9a5ece2 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -364,6

[PATCH libinput 12/23] Sanitize distance and pressure axes before reporting their values

2014-06-12 Thread Stephen Chandler Paul
filter out any distance events with a value of maximum or minimum when the tool is not within useful proximity of the tablet. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 34 ++ src/evdev-tablet.h | 3 ++- 2 files changed, 36 insertions(+),

[PATCH libinput 04/23] Add the libinput_tool object

2014-06-12 Thread Stephen Chandler Paul
This will be used to represent a tool in use on a drawing tablet. Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- src/libinput-private.h | 7 + src/libinput.c | 29 src/libinput.h | 73

[PATCH libinput 14/23] test: Add infrastructure for testing tablet events.

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho no vfuncs are used, only input_event arrays. Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- Changes --- - Removed clear_axes and clear_buttons input_event fields - Add field for bad distance events - Add feature

[PATCH libinput 09/23] tablet: Handle button-events

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 113 + src/evdev-tablet.h | 12 +- src/libinput-private.h | 5 +++ src/libinput.c | 55 src/libinput.h | 51

[PATCH libinput 08/23] tools: Handle LIBINPUT_EVENT_TABLET_PROXIMITY_OUT in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index 7ba1e64..90cdd64 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -221,6

[PATCH libinput 00/23] Revised: Tablet support in libinput

2014-06-12 Thread Stephen Chandler Paul
d Wacom Intuos5 touch M Pen device definition test: Add Wacom ISDv4 E6 Pen device definition Stephen Chandler Paul (17): evdev: Add basic support for tablet devices tools: handle TABLET_EVENT_AXIS in event-debug Add the libinput_tool object Emit LIBINPUT_TABLET_EVENT_TOOL_UPDATE events

[PATCH libinput 07/23] Emit LIBINPUT_EVENT_TABLET_PROXIMITY_OUT when tool leaves proximity

2014-06-12 Thread Stephen Chandler Paul
e the tool type is changed to LIBINPUT_TOOL_NONE, so we don't end up filling the tool list with a bunch of tools that aren't actually tools. Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 25 + src/evdev-tablet.h | 3 ++- src/libinput

[PATCH libinput 06/23] tools: handle LIBINPUT_TABLET_EVENT_TOOL_UPDATE in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index 5202fc9..7ba1e64 100644 --- a/tools/event-debug.c

  1   2   >