We really don't need to deal with devices that have x but not y or vice versa.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev.c | 23 +
test/device.c | 103 ++
2 files changed, 126 insertions(+)
diff
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-buttons.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c
index 3ca37b7..18c32fd 100644
--- a/src/evdev-mt-touchpad-buttons.c
Replaced by gdk_cursor_new_from_display() which means we need to tickle the
event until it spits out a GdkDisplay.
Deprecated in gdk 3.16
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
If anyone can do a quick double-check that I'm not mis-using gdk here please
that'd be appreciated
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad.c | 26 +++--
src/evdev.c | 7 +--
src/filter-private.h| 7 ---
src/filter.c| 50 +++--
src/filter.h
Make sure that if we go in one direction, then change flip over to the other
direction we actually stop going into that direction, and the delta is lower
than whatever the previous delta was (i.e. acceleration resets).
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/pointer.c
Delta movements on most slower movements are less than 1.0 per event, so we'd
end up with an undefined direction for all of them. This led to the velocity
being calculated across opposite movements rather than (as intended) across
movements within a shared octant.
Signed-off-by: Peter Hutterer
by the test suite.
Actual effect was limited, since we cap out acceleration at max_accel we just
hit this earlier and it stayed there.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/filter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/filter.c b/src
On Fri, Mar 20, 2015 at 10:19:06AM +1000, Peter Hutterer wrote:
[...]
5) If a device has multiple axes of the same type, is the order
supposed to be ABI? Example: gamepads tend to have two analog-sticks.
How do applications reliably find the left and right stick?
well, our promise
On Thu, Mar 19, 2015 at 02:01:29PM -0700, Jason Gerecke wrote:
David's already asked the API questions that popped in my head, so I'll just
wait for feedback on his thread. As far as this patch goes, things look
pretty good though there are two comments:
On 3/17/2015 11:58 PM, Peter Hutterer
On Thu, Mar 19, 2015 at 01:15:01PM +0100, David Herrmann wrote:
Hi
On Wed, Mar 18, 2015 at 7:58 AM, Peter Hutterer
peter.hutte...@who-t.net wrote:
This is a re-vamped version of the buttonset interface. Still WIP but I'd
like to get some comments on the API.
Changes to the last
On Thu, Mar 19, 2015 at 11:45:16AM +0200, Pekka Paalanen wrote:
On Thu, 19 Mar 2015 07:13:18 +1000
Peter Hutterer peter.hutte...@who-t.net wrote:
On Wed, Mar 18, 2015 at 01:14:52PM +0200, Pekka Paalanen wrote:
On Wed, 18 Mar 2015 11:45:01 +0100
Thilo Cestonaro th...@cestona.ro wrote
On Thu, Mar 19, 2015 at 02:29:05PM +0900, Beomho Seo wrote:
On 03/12/2015 06:28 AM, Peter Hutterer wrote:
On Wed, Mar 11, 2015 at 05:01:32PM +0900, Beomho Seo wrote:
Hi everyone,
I have a question about libinput.
I will handle a rotary input device. It is able to provide angular
I had a release script test gone bad and it pushed a fake 0.13.0 release.
The commit was only sitting on master for a couple of minutes, I've
force-pushed the previous HEAD (1ed07fedce45d817f70f56439aba6e13be7a)
Just in case you see something odd, sorry about that.
The false commit was
On Thu, Mar 19, 2015 at 09:44:39PM +0900, Beomho Seo wrote:
On 03/19/2015 07:25 PM, Peter Hutterer wrote:
On Thu, Mar 19, 2015 at 02:29:05PM +0900, Beomho Seo wrote:
On 03/12/2015 06:28 AM, Peter Hutterer wrote:
On Wed, Mar 11, 2015 at 05:01:32PM +0900, Beomho Seo wrote:
Hi everyone
On Mon, Mar 09, 2015 at 02:22:56PM +0100, Hans de Goede wrote:
Now that we've separate handling of the EDGE_NEW vs EDGE states in
tp_edge_scroll_post_events() we can drop the threshold variable, in EDGE_NEW
we always want to check against DEFAULT_SCROLL_THRESHOLD and in the EDGE
state we only
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
configure.ac | 2 +-
src/evdev-tablet.c | 56 +-
2 files changed, 27 insertions(+), 31 deletions(-)
diff --git a/configure.ac b/configure.ac
index 85db1fd..038022e 100644
Some tablets cannot be differentiated by pid/vid alone, use the device path
instead - that gives libwacom the ability to extract the information required
to handle the device (libwacom doesn't open the path, it just reads through
the sysfs entry of the device).
Signed-off-by: Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-edge-scroll.c | 8 ++--
src/evdev-mt-touchpad-gestures.c| 2 +-
src/evdev.c | 81 +
src/evdev.h | 6 +--
src/libinput
No functional changes.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index 70c60ee..645a36b 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -224,6 +224,13
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-edge-scroll.c | 8 +---
src/evdev.c | 27 ---
src/libinput-private.h | 8 ++--
src/libinput.c | 12 +---
4 files
On Wed, Mar 11, 2015 at 03:20:55PM +0100, Hans de Goede wrote:
Implement touchpad pinch (and rotate) gesture support.
WIP: TODO: fix testsuite.
Signed-off-by: Hans de Goede hdego...@redhat.com
looks good, almost all comments are just related to coding style/shuffling
things around.
fwiw,
Everywhere else in the touchpad code we use t for the struct tp_touch.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-edge-scroll.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/evdev-mt-touchpad-edge-scroll.c
b/src/evdev-mt
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-edge-scroll.c | 26
src/evdev-mt-touchpad-gestures.c| 60 +++--
src/evdev-mt-touchpad-tap.c | 6 ++--
src/evdev-mt-touchpad.c | 34
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev.c| 13 +
src/libinput-private.h | 6 ++
src/libinput.c | 23 +--
3 files changed, 16 insertions(+), 26 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index d1b0504
libinput has two types of coordinates - device coordinates and coordinates
normalized into the 1000 dpi default. we generally use int/double for those
two, but it's not always clear or obvious which type of coordinates we're
dealing with. So there's a risk of mixing them up and we may not notice
Make it clear where we're dealing with device coordinates and where we're
dealing with DPI-normalized coordinates.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev.c| 88 +-
src/evdev.h| 8 ++---
src
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/libinput.c b/src/libinput.c
index 8db6997..96df44a 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -58,10 +58,9 @@ struct
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad.c | 2 +-
src/evdev-mt-touchpad.h | 7 +--
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 8808850..ebe611f 100644
--- a/src/evdev-mt
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.c | 29 +
1 file changed, 13 insertions(+), 16 deletions(-)
diff --git a/src/libinput.c b/src/libinput.c
index 3b1d482..1a68069 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -57,8 +57,8
On Wed, Mar 11, 2015 at 05:01:32PM +0900, Beomho Seo wrote:
Hi everyone,
I have a question about libinput.
I will handle a rotary input device. It is able to provide angular information
(increase, decrease), elocity and push/relase(like key) event. I hope to use
libinput to handle rotary
On Wed, Mar 11, 2015 at 04:12:58PM -0400, Benjamin Tissoires wrote:
On Tue, Mar 10, 2015 at 1:03 AM, Peter Hutterer
peter.hutte...@who-t.net wrote:
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
configure.ac | 2 +-
src/evdev-tablet.c | 56
-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad.c | 5 +++--
src/evdev-mt-touchpad.h | 7 +++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index b90d84c..9b06522 100644
--- a/src/evdev-mt-touchpad.c
the other order anyway).
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/touchpad.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/touchpad.c b/test/touchpad.c
index 8077f8e..5c8f579 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -2570,8 +2570,8
this is currently
more than 3mm]
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-tap.c | 12 +---
src/evdev-mt-touchpad.h | 1 +
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c
applies when exceeding
the motion threshold, when the timeout triggers the switch to scrolling the
first delta posted is the current delta.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
Reviewed-by: Hans de Goede hdego...@redhat.com
---
Changes to v1:
- use TP_MM_TO_DPI_NORMALIZED
- reset
This is a draft/RFC for adding axis sources to the wayland protocol and
weston. It's an early version to spark discussion.
libinput exports pointer axis sources with each event to tell the caller how
an event was generated. The interesting one is FINGER which signals
finger-based scrolling
The axis source determines how an event was generated. That enables clients to
judge when to use kinetic scrolling.
We can't extend the existing wl_pointer.axis events so instead this new event
is prefixed before each wl_pointer.axis event, i.e. the sequence becomes:
wl_pointer.axis_source
Very much a proof-of-concept only.
---
clients/eventdemo.c | 67 +
1 file changed, 67 insertions(+)
diff --git a/clients/eventdemo.c b/clients/eventdemo.c
index 57aa716..e4e4283 100644
--- a/clients/eventdemo.c
+++ b/clients/eventdemo.c
@@
Extend notify_axis to take source, step_distance and flags and pass them down
to the client. We don't do much there with it other than using it to print
stop in the event demo when the last event comes in.
---
clients/cliptest.c | 5 -
clients/eventdemo.c | 38
On Fri, Mar 06, 2015 at 11:49:37AM +0100, Hans de Goede wrote:
Hi,
On 06-03-15 06:44, Peter Hutterer wrote:
The previous setting of 10 wasn't 10 mm, it was used against the deltas
normalized to a 1000DPI mouse, i.e. closer to 4mm. It was also also
per-event,
so a slow movement or a high
touches delta
touchpad: Refactor tp_get_*_touches_delta
Peter Hutterer (19):
cosmetic: drop more double empty lines
Clarify a comment, it's wheel clicks, not mouse clicks
evdev: force-assign 10 slots to mtdev devices
test: add protocol A touch screen tests
evdev
On Thu, Mar 12, 2015 at 08:05:24PM +0100, Hans de Goede wrote:
Currently touchpad_2fg_scroll_slow_distance always moves the touches 10% of
the touchpad height during the test.
On the wacom-intuos-finger test device this is a much larger distance then on
the synaptics test device, triggering
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/litest.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/litest.c b/test/litest.c
index 3646446..ad0aff2 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -372,6 +372,8 @@ litest_log_handler(struct libinput *libinput
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/src/libinput.h b/src/libinput.h
index ca08c3e..9a7829e 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -668,6 +668,12
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.c | 191 +++--
1 file changed, 185 insertions(+), 6 deletions(-)
diff --git a/src/libinput.c b/src/libinput.c
index 4d88c46..1231783 100644
--- a/src/libinput.c
+++ b/src
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.h | 28 +++-
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/src/libinput.h b/src/libinput.h
index f978b37..356c1bf 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -839,8 +839,11
We don't actually use TOUCH_CANCEL in libinput, but either way calling the
slot on a cancel should be valid. Calling it on a FRAME event is not.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.h | 18 ++
1 file changed, 14 insertions(+), 4 deletions
The helper function now prints an error message if the event type passed is
not allowed.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.c | 142 ++---
test/litest.c | 12 +
test/litest.h | 2 +
test/misc.c
-by: Peter Hutterer peter.hutte...@who-t.net
otherwise
Cheers,
Peter
* function returns 0.
*
* If a device employs pointer acceleration, the delta returned by this
@@ -967,7 +970,7 @@ libinput_event_gesture_get_finger_count(struct
libinput_event_gesture *event);
* 1000dpi resolution
On Fri, Mar 06, 2015 at 11:41:44AM +0100, Hans de Goede wrote:
Hi,
On 06-03-15 06:42, Peter Hutterer wrote:
Previous code used a device coordinate threshold of 300 which won't work on
Elantech touchpads (1280 vs the ~4000 that synaptics has).
Convert to normalized DPI and reduce
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
Turns out the wheel was set and handled, but the event-debug tool didn't
print it in the capabilities
tools/event-debug.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/event-debug.c b/tools/event-debug.c
index bf23bfb
dark branch and got mugged. anyway.
Reviewed-by: Peter Hutterer peter.hutte...@who-t.net for both - I wouldn't
mind if you split the gesture bits out and push the rest straight to master.
Cheers,
Peter
---
src/evdev-mt-touchpad-edge-scroll.c | 3 +--
src/evdev-mt-touchpad-gestures.c| 8
On Tue, Mar 24, 2015 at 01:14:19PM +0100, Hans de Goede wrote:
Add a normalized_length helper function and use this where applicable,
just a minor cleanup.
Signed-off-by: Hans de Goede hdego...@redhat.com
thanks, all three merged, with a couple of minor whitespace changes as
detailed below.
See the explanation by Jonas here:
http://lists.freedesktop.org/archives/wayland-devel/2015-March/020814.html
---
One thought while writing this: would it make sense to add a
wl_seat.get_pointer_versioned request to request a specific wl_pointer
version from the seat? or is that a solution
The axis_source event determines how an axis event was generated. This enables
clients to judge when to use kinetic scrolling.
The axis_stop event notifies a client about the termination of a scroll
sequence, likewise needed to calculate kinetic scrolling parameters.
The axis_discrete event
On Wed, Mar 25, 2015 at 09:44:48AM +0100, Hans de Goede wrote:
Hi,
On 24-03-15 23:17, Peter Hutterer wrote:
On Tue, Mar 24, 2015 at 04:51:35PM +0100, Hans de Goede wrote:
Change tp_filter_motion to use normalized_coords, rather then having it take
separate x and y values.
Signed-off
This reverts commit 0e64837f30c310da878f28961a6db7c4bcd4f282.
Rather than a customized touchpad property, let udev handle this and set the
absinfo struct during the normal setup procedures. No need for libinput to
have a custom workaround here.
Signed-off-by: Peter Hutterer peter.hutte...@who
On Mon, Mar 23, 2015 at 10:23:18AM +0800, Jonas Ã…dahl wrote:
On Mon, Mar 09, 2015 at 01:28:04PM +1000, Peter Hutterer wrote:
The axis source determines how an event was generated. That enables clients
to
judge when to use kinetic scrolling.
Nice to see this happening!
I have
Except for a few axes where this may be correct, a min == max axis range
indicates a broken kernel driver. To avoid potential divisions by zero when
scaling this axis later, reject such a device outright.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev.c | 34
be fixed in the kernel
anyway.
Note that this changes the order of events during a udev seat init, before we
had all DEVICE_ADDED events in a row, now the proximity event may be
interspersed.
Reported-by: Jason Gerecke killert...@gmail.com
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
On Tue, Mar 03, 2015 at 12:29:28PM -0500, Benjamin Tissoires wrote:
On Mon, Mar 2, 2015 at 10:29 PM, Benjamin Tissoires
benjamin.tissoi...@gmail.com wrote:
On Mon, Mar 2, 2015 at 7:59 PM, Peter Hutterer peter.hutte...@who-t.net
wrote:
If a tool is in proximity when we init, send
On Wed, Mar 04, 2015 at 03:26:30PM +0100, Hans de Goede wrote:
Extend the touchpad gesture API with zoom/rotate gestures. Note that this
new API offers a single event stream for both zoom and rotate data, this
is deliberate as some applications may be interested in getting both at
the same
it's a bit quirky and leave it
at that.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
doc/Makefile.am| 1 +
doc/tablet-support.dox | 50 ++
src/libinput.h | 2 ++
3 files changed, 53 insertions(+)
create mode 100644
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 8c11409..3e3924c 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -639,6 +639,7 @@ tool_set_bits_from_libwacom
Works as a touchpad but has no buttons.
Minor change to one of the touchpad tests: because the touch area is so big
the slow-scrolling trigger needs to be adjusted.
And because the device is an external device, the disable on external mouse
test needs to be adjusted.
Signed-off-by: Peter
No effect, all devices currently have tapping disabled.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/touchpad.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/test/touchpad.c b/test/touchpad.c
index b70d373..d1f1257 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
Split out into a btntool test and a true three-finger test. For consistency,
check the number of slots on all those tests rather than having
litest-device-specific exclusions.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/touchpad.c | 67
This affects the touch device on graphics tablets.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-tap.c | 18 +-
test/touchpad.c | 20
2 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/src/evdev-mt
Clickpads have BTN_LEFT but no BTN_RIGHT, non-clickpads must have both.
Tablet touch devices don't have any buttons, so skip the warning for those.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-mt-touchpad-buttons.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
If we send BTN_LEFT or similar, we need the LITEST_BUTTON capability on the
device.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/touchpad.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/touchpad.c b/test/touchpad.c
index 627d64a..246d07a
These tests make sure we don't get tapping events in certain situations
(finger movement, timeouts, ...). Tapping must be enabled for that to be a
valid test.
The tests can't work on semi-mt devices because we can't end slots
independently. Disable the tests there.
Signed-off-by: Peter Hutterer
On Thu, Feb 26, 2015 at 11:54:10AM +0100, sardemff7+wayl...@sardemff7.net wrote:
On 2015-02-24 07:21, Peter Hutterer wrote:
A tablet hotplug event is rare and not a time-critical event, so we load the
database on tablet init and throw it away again.
Signed-off-by: Peter Hutterer peter.hutte
On Tue, Feb 24, 2015 at 04:21:03PM +1000, Peter Hutterer wrote:
This is a v2 of the patchset here
http://lists.freedesktop.org/archives/wayland-devel/2015-February/020036.html
but reshuffled, rebased and a couple of things merged in. Notable:
libinput now uses libwacom to get tool/tablet
On Thu, Feb 26, 2015 at 04:20:49PM -0500, Benjamin Tissoires wrote:
On Tue, Feb 24, 2015 at 1:21 AM, Peter Hutterer
peter.hutte...@who-t.net wrote:
Needs to be calculated from the x/y tilt values, the mouse has a fixed
offset
of 175 degrees counterclockwise.
Signed-off-by: Peter
On Mon, Mar 02, 2015 at 10:38:54AM -0500, Benjamin Tissoires wrote:
On Mon, Mar 2, 2015 at 1:53 AM, Peter Hutterer peter.hutte...@who-t.net
wrote:
On Thu, Feb 26, 2015 at 04:20:49PM -0500, Benjamin Tissoires wrote:
On Tue, Feb 24, 2015 at 1:21 AM, Peter Hutterer
peter.hutte...@who-t.net
On Mon, Feb 23, 2015 at 10:50:48AM +0100, Michal Suchanek wrote:
Hello,
I heard there is attempt to collect a database of mouse speeds (DPI)
so all mice behave the same.
yep, look at the hwdb/70-mouse.hwdb file in the systemd repo. it's fairly
easy to add to it.
What is the semantic of
On 21/02/2015 06:08 , Bill Spitzak wrote:
On 02/19/2015 04:49 PM, Peter Hutterer wrote:
unless you have the context you cannot know. and the only thing to have
that context is the client. sure you can make all sorts of exceptions
(but
double-tap should always be doubletap) but that just
/udev_config.html
The full commit shortlog is below.
Benjamin Tissoires (2):
evdev: retrieve udev tags
Use LIBINPUT_DEVICE_GROUP from udev as group identifier
Marek Chalupa (1):
add simple symbols leak checker
Peter Hutterer (19):
Introduce device groups to group logical devices
Just as a heads-up, here's a short summary on what the plan is for libinput.
There are three milestones that are somewhat independent of each other:
* API/ABI stability promise
* libinput 1.0
* tablet, buttonset and touchpad gesture support
I made vague promises (on private channels) that we'll
On Wed, Feb 18, 2015 at 01:26:53PM +0100, Hans de Goede wrote:
The two tp_get_*_touches_delta functions are almost identical, refactor
them into one function.
Signed-off-by: Hans de Goede hdego...@redhat.com
---
ACK to the basics, but I'd like to leave the two calls in place and make
them
On Sun, Feb 22, 2015 at 07:48:03PM -0500, Lyude wrote:
On Wed, 2015-02-18 at 15:45 +1000, Peter Hutterer wrote:
The mouse like devices have LMR, SIDE and EXTRA.
PENCIL (which is the Wacom Inking) and the eraser have no buttons.
AIRBRUSH has only one button, all other pens have two
events at the end of 2fg scrolling when not lifting both fingers at
exactly the same time.
Signed-off-by: Hans de Goede hdego...@redhat.com
only comment I have here: can we rename finger_mode to finger_count? it's
less ambiguous.
Reviewed-by: Peter Hutterer peter.hutte...@who-t.net
On Wed, Feb 18, 2015 at 01:26:54PM +0100, Hans de Goede wrote:
Add support for swipe gestures.
Signed-off-by: Hans de Goede hdego...@redhat.com
unless noted otherwise, series
Reviewed-by: Peter Hutterer peter.hutte...@who-t.net
Cheers,
Peter
---
src/evdev-mt-touchpad-gestures.c | 36
args needs to be within () to ensure correct calculation
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/litest.h | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/litest.h b/test/litest.h
index 4553c87..dd1ad9a 100644
--- a/test/litest.h
+++ b
The little wheel isn't a full wheel, it has a ~90 degree rotation angle with a
range of 1024 values. To avoid confusion with wheel elsewhere in the API
name it slider.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 9 --
src/evdev-tablet.h | 6
Equivalent to the pointer axis function - it gets the mouse wheel clicks from
the tablet mouse.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 5 -
src/libinput-private.h | 3 ++-
src/libinput.c | 32 +++-
src
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 35 +++-
src/evdev-tablet.h | 6
src/libinput.h | 3 +-
test/tablet.c | 95 ++
4 files changed, 130 insertions(+), 9 deletions
I keep having to move them around after merging from master and often I'm late
with it too. It's a lot easier to just have to update the dependency in a
single line, and causes less conflicts too.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/libinput.sym | 9 ++---
1 file
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 50 +-
1 file changed, 33 insertions(+), 17 deletions(-)
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 2b90e08..52742cf 100644
--- a/src/evdev-tablet.c
The tool ID on wacom tablets is what really defines the tool, so one can
differ between say an Intuos Grip Pen, Art Pen or Classic Pen. They're all
BTN_TOOL_PEN in the kernel driver.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 8
src/evdev
libwacom can tell us how many buttons we have per stylus, so we map those into
BTN_STYLUS and BTN_STYLUS2.
BTN_TOUCH is set on all styli.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 73 ++
src/libinput
The serial test was broken, it succeeded even if we never got an event. The
second test was fine, but complicated. Make it use some of the newer litest
features.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/tablet.c | 42 --
1 file
number? If it's 0x100802 then I've just sent a patch for
libwacom to fix it up (the database was wrong).
Cheers,
Peter
On Wed, 2015-02-18 at 15:45 +1000, Peter Hutterer wrote:
This patchset adds the remaining tools to the tablet branch (at least for
Wacom tools). The notable additions
On Wed, Feb 25, 2015 at 05:29:49PM -0800, Jason Gerecke wrote:
On 2/23/2015 10:21 PM, Peter Hutterer wrote:
ABS_THROTTLE:
Tablets still advertise this axis but the mouse itself isn't available
anymore. The Pad sends the second wheel as ABS_THROTTLE but that's a
task
and their
events won't interfere until they actually use it.
Reported-by: Jason Gerecke killert...@gmail.com
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 10 +-
test/tablet.c | 43 +++
2 files changed, 52 insertions
We don't have real support for them yet but they have the ID_INPUT_TABLET tag
set. Ignore them explicitly before someone thinks they're already working.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev.c | 15 +--
1 file changed, 13 insertions(+), 2 deletions
On Wed, Feb 25, 2015 at 05:31:00PM -0800, Jason Gerecke wrote:
On 2/23/2015 10:21 PM, Peter Hutterer wrote:
This doesn't really have an effect, since we don't set the per-tool axes
correctly yet.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
tools/event-debug.c | 106
On Wed, Feb 25, 2015 at 05:30:21PM -0800, Jason Gerecke wrote:
On 2/23/2015 10:21 PM, Peter Hutterer wrote:
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/evdev-tablet.c | 35 +++-
src/evdev-tablet.h | 6
src/libinput.h | 3 +-
test/tablet.c
Providing a relative axis in the axis_get_value() is inconsistent with the
other axes, this will be fixed in a follow-up commit.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
Reviewed-by: Benjamin Tissoires benjamin.tissoi...@gmail.com
---
Changes to v1:
- s/break/continue
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
New patch, I had to re-do the test because it never actually triggered. So
rather than complicated rebasing, this is the final test with everything
including discrete values.
New test sends more than one wheel event and then a couple
901 - 1000 of 3195 matches
Mail list logo