Age | Commit message (Collapse) | Author | Files | Lines |
|
I think four finger swipes are useful, attached is a very
simple patch enabling that.
Signed-off-by: Daniel Landau <daniel.landau@helsinki.fi>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
On Fedora /usr/lib64 is used for 64 bit architectures.
[rydberg@euromail.se: removed extra slash]
Signed-off-by: Harald Hoyer <harald@redhat.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Fixes the bug that stopped tapped clicks from working when two thumbs
were detected, by initializing the thumb variable for every new state.
Signed-off-by: Dennis Jarosch <dennis.jarosch@gmx.de>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Fixes the bug that flooded the X server with button events, by
initializing the Gestures struct before handling taps.
Signed-off-by: Dennis Jarosch <dennis.jarosch@gmx.de>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The version 12 input ABI brings substantial changes to driver
handling. This patch makes the driver compile and run under the
upcoming X server 1.10.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
Refresh the debian packaging, changing name and version to match
current project.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The default two-finger scroll is somewhat slow; double it.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The Magic Trackpad does not report both touch and width of a finger,
making thumb/palm detection less reliable. Approximate thumb detection
as a large oval object, restoring some of the thumb functionality.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The current lack of configuration possibilities makes it reasonable to
turn tapping on by default, if nothing else for discoverability
reasons. Turn turn off, just change the value in src/memory.c.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Grabbing the device has some historic virtues, but to simplify
experimentation with devices and multitouch data, turn the device
grabbing of by default.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Recently, a set of kernel drivers were updated to align the
reported touch size with actual physical size. Consequently,
the thumb detection, which contains an absolute size component,
needs to be updated. Remedied with this patch.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The magic trackpad has an integrated button. This patch detects
the integrated button which enables the special logic for those devices.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
The non-blocking example is more interesting in the X applications.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
This patch puts the reading code more in line with the upcoming
mtdev library, and should remove some spurious input behavior.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The tapping was not properly turned off by the parameter, resulting
in spurious clicks when typing. This patch moves the tapping parameter
logic to memory.c, which fixes the problem.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The code erroneously had MT_ABS_SIZE defined only for kernels
before 2.6.36. Fixed with this patch.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
|
|
This patch adds tap-to-click, tap-and-hold for dragging, two-finger
and three-finger taps. Turned on by default for touch screens only;
switch on in gestures.c.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The mtdev queue api functions had wrong names. This patch changes
them to the familiar put and get.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Sliding a thumb along the upper edge of the pad results in
spurious pointer motion. This patch increases the delays before
moving close to the pad edges, and increase the relaxation time
after a thumb detection, reducing the effect somewhat.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The MT devices produce a lot of data. This patch increases the
buffer size to a value empirically found working well for up to
ten fingers.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Add a parameter to control whether the underlying device
should be grabbed or not. Default to yes.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Use the bit traversal functions where possible.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
It is more convenient to print out the gesture at will than
having trace commands all over the code.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
This patch makes the switch, from using hwdata and the associated
type A parser, to using mtdev and the associated type B parser.
A command-line gesture test program is included.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
With the addition of the kernel MT slots, the MT event protocol
is capable of efficiently propagating changes to a set of tracked
contacts. At the same time, the need to treat a variety of different
kernel drivers is increased. This patch introduces the mtdev, an
abstract MT device which converts all valid MT event formats into
a uniform, slotted type B event stream. A command-line test program
is included.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Use the bitmask_t for all bitfields, to simplify future expansions
to larger bit fields.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Use the generated abs2mt mapping to simplify the MT device
capabilities.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Use the kernel-provided list MT_SLOT_ABS_EVENTS to generate
code mappings between ABS_MT space and MT space. This patch
adds the program mapgen that does the mapping, and adds two
include files generated with it.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Move all headers into include, separate source files into modules
match, mtdev, src and driver, move some common definitions to
common.h, and include define support for the MT slot protocol.
This patch does not introduce any logical changes.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The current code does not allow ABI_XINPUT versions above 7,
although the relevant parts are still good. This patch makes
all new versions behave as version 7, until proven otherwise.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Moving two fingers around a center point will trigger the gesture.
This patch computes the rotation gesture and maps it to mouse buttons
14 and 15.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Moving two fingers apart or closer together will trigger the gesture.
This patch computes the scaling gesture and maps it to mouse buttons
12 and 13.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
In particular for trackpads with integrated button, freezing the mouse
movement while clicking is important for pointer precision. This
patch holds the movement while clicking, obtaining the desired effect.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Disable motion gestures whenever one of the pointing fingers is a
thumb. Movement is skipped rather than held, minimizing unpredictable
movement after thumb release.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Robust thumb detection is essential for more advanced gestures, thumbs
being responsible for many false positives. One major feature of the
thumb is that its shape is oval, regardless of applied pressure. An
index finger pressed hard against the surface also turns oval, but the
touch/width ratio then increases significantly. This suggests that it
is possible to uniquely identify a resting thumb as a finger with oval
shape and normal touch/with ratio.
This patch adds detection of resting thumbs to the MTFinger structure.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Add the bitmasks "fingers" and "added" to parsor memory, and extend
time handling to use a hold time and a forget time.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Split the gesture code into a lexical part, which updates the filtered
motion state, and a parsing part, which translates the motion state to
gestures.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Switch from the FingerData structure to the MTFinger structure, making
room for more computed finger details in MTState.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
In preparation of adding several additional finger bit registers,
remove the redundant bit-counting variables and introduce fast
bit-traversal functions instead.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The github likes readme files, so add a rudimentary one.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
The current signal-to-noise ratio for the touch size is much too low,
making the pointer feel too insensitive. This patch increases the
ratio from 15 to 100.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|