aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* xf86-input-multitouch v1.0-rc3HEADmasterHenrik Rydberg2012-03-242-1/+7
|
* Four finger swipes in multitouchDaniel Landau2011-03-253-0/+14
| | | | | | | | 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>
* Makefile: make LIBDIR configurableHarald Hoyer2011-03-031-1/+2
| | | | | | | | 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>
* Add missing thumb reset at state extractionDennis Jarosch2011-02-131-0/+1
| | | | | | | | 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>
* Fix event flood in tap handlingDennis Jarosch2011-02-131-0/+1
| | | | | | | | 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>
* Support XINPUT 12Henrik Rydberg2011-02-131-0/+33
| | | | | | | | 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>
* xf86-input-multitouch v1.0-rc2Henrik Rydberg2010-10-211-1/+1
|
* Package as xf86-input-multitouchHenrik Rydberg2010-10-2110-36/+25
| | | | | | | Refresh the debian packaging, changing name and version to match current project. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Increase vscroll speed by a factor of twoHenrik Rydberg2010-10-161-1/+1
| | | | | | The default two-finger scroll is somewhat slow; double it. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Support palm detection for trackpads without width supportHenrik Rydberg2010-10-161-3/+7
| | | | | | | | 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>
* Turn tapping on by defaultHenrik Rydberg2010-10-161-1/+1
| | | | | | | | 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>
* Do not grab by defaultHenrik Rydberg2010-10-161-1/+1
| | | | | | | | 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>
* Adjust thumb detection based on kernel touch width alignmentHenrik Rydberg2010-10-161-2/+2
| | | | | | | | | 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>
* Enable integrated button support for the Magic TrackpadHenrik Rydberg2010-10-161-0/+4
| | | | | | | 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>
* Remove usage of deprecated xalloc/xfreeHenrik Rydberg2010-10-121-2/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Remove credits now found in the mtdev libraryHenrik Rydberg2010-10-121-30/+0
|
* Use a non-blocking example instead of blockingHenrik Rydberg2010-10-121-2/+2
| | | | | | The non-blocking example is more interesting in the X applications. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Improve error handling in mtouch open and closeHenrik Rydberg2010-10-121-6/+17
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Only check delayed gestures when queue is emptyHenrik Rydberg2010-10-121-1/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Same version, but using the mtdev library.Henrik Rydberg2010-10-1224-1509/+58
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify event readingHenrik Rydberg2010-06-216-40/+44
| | | | | | | 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>
* Move tapping parameter to memory.cHenrik Rydberg2010-06-172-5/+4
| | | | | | | | 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>
* Make MT_ABS_SIZE available for all kernel versionsHenrik Rydberg2010-06-171-1/+2
| | | | | | | 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>
* Multitouch 1.0-beta1Henrik Rydberg2010-06-161-1/+1
|
* Add tapping logicHenrik Rydberg2010-06-1610-0/+176
| | | | | | | | 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>
* Correct mtdev API namesHenrik Rydberg2010-06-166-23/+23
| | | | | | | 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>
* Increase stability against thumb and edge touchesHenrik Rydberg2010-06-162-2/+2
| | | | | | | | | 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>
* Increase event buffer sizeHenrik Rydberg2010-06-161-1/+1
| | | | | | | | 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>
* Control grabbing by parameterHenrik Rydberg2010-06-161-6/+14
| | | | | | | 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>
* janitor: Simplify gesture handlingHenrik Rydberg2010-06-161-5/+3
| | | | | | Use the bit traversal functions where possible. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: Simplify gesture tracingHenrik Rydberg2010-06-161-35/+16
| | | | | | | 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>
* refactor: Replace hwdata by mtdevHenrik Rydberg2010-06-1615-386/+221
| | | | | | | | 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>
* refactor: Introduce mtdevHenrik Rydberg2010-06-165-1/+597
| | | | | | | | | | | | 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>
* refactor: Use the bitmask_t typeHenrik Rydberg2010-06-166-8/+8
| | | | | | | Use the bitmask_t for all bitfields, to simplify future expansions to larger bit fields. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* refactor: Simplify capabilitiesHenrik Rydberg2010-06-167-93/+85
| | | | | | | Use the generated abs2mt mapping to simplify the MT device capabilities. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* refactor: Generate code for ABS_MT mappingHenrik Rydberg2010-06-164-0/+123
| | | | | | | | | 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>
* refactor: Move filesHenrik Rydberg2010-06-1620-64/+127
| | | | | | | | | | 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>
* Allow ABI_XINPUT versions greater than 7Henrik Rydberg2010-05-171-1/+1
| | | | | | | | 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>
* Add rotation gestureHenrik Rydberg2010-05-144-6/+28
| | | | | | | | 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>
* Add scale gestureHenrik Rydberg2010-05-144-5/+49
| | | | | | | | 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>
* Hold movement while clickingHenrik Rydberg2010-05-141-1/+5
| | | | | | | | 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 with resting thumbsHenrik Rydberg2010-05-143-5/+20
| | | | | | | | 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>
* Add resting thumb detection to MTFingerHenrik Rydberg2010-05-142-1/+27
| | | | | | | | | | | | | | 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>
* Refactor parsor memory usageHenrik Rydberg2010-05-144-70/+112
| | | | | | | 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>
* janitor: Split gesture code into memory refresh and parseHenrik Rydberg2010-05-144-135/+226
| | | | | | | | 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>
* Add convenience methods for distance to capability center pointHenrik Rydberg2010-05-143-0/+27
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce MTFinger structureHenrik Rydberg2010-05-143-11/+27
| | | | | | | 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>
* janitor: Move min/max and dist functions up to common.hHenrik Rydberg2010-05-144-19/+24
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify bit bookkeepingHenrik Rydberg2010-05-145-21/+43
| | | | | | | | 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>
* Add a READMEHenrik Rydberg2010-05-141-0/+8
| | | | | | The github likes readme files, so add a rudimentary one. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>