---
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
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
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
---
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
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
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
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
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
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
(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
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
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
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
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
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
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
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 ++
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 +
---
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);
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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
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
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
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
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:
- 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
, 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
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
---
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
-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
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
"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
@@ -
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/
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
(). 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(+),
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
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
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
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
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
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
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 - 100 of 111 matches
Mail list logo