summaryrefslogtreecommitdiff
path: root/src/multitouch.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 gesturev1.0-alpha3Henrik Rydberg2010-05-141-2/+10
| | | | | | | | 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-141-2/+11
| | | | | | | | 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>
* Reset scroll state on finger configuration changeHenrik Rydberg2010-04-151-0/+6
| | | | | | | | | | | When scrolling, the current code remembers how close the movement is to emitting a scroll button, in order to produce a continuous stepping motion. However, when the finger configuration on the trackpad changes, this state should start over again, or the next scolling gesture may scroll prematurely. This patch resets the scrolling state when a change is detected, which fixes the problem. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Define swipe gesturesHenrik Rydberg2010-04-151-6/+18
| | | | | | | Define three-finger vertical and horizontal scroll as vertical and horizontal swipe gestures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Define swipe buttonsHenrik Rydberg2010-04-151-1/+8
| | | | | | Define four additional buttons to be used for swiping gestures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Break out scrolling codeHenrik Rydberg2010-04-151-18/+18
| | | | | | Move the duplicated scrolling code to a function. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Reverse the order of the hscroll buttonsArturo Castro2010-04-151-2/+2
| | | | | | | | | | The horizontal three-finger swipe is currently defined in the opposite direction to what is considered normal. This patch reverses the order of the emitted buttons, restoring normality. Signed-off-by: Arturo Castro <arturo@openframeworks.cc> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce convenience function for device dimensionsHenrik Rydberg2010-03-211-6/+2
| | | | | | | The capability names are rather lengthy; this patch adds convenience functions for the dimension capabilities. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: stick to kernel-style formattingalpha-1Henrik Rydberg2010-02-011-63/+34
| | | | | | With this commit, the whole code base complies with the kernel format style, and patches can be checked against the kernel-provided ./scripts/checkpatch.pl
* button: simplify property mappingHenrik Rydberg2010-02-011-40/+19
| | | | Janitory changes only.
* button: simplify button handlingHenrik Rydberg2010-02-011-6/+7
| | | | | Make better use of the bit representation, reducing one layer of conversion.
* Revert "sweep feels better without memory"Henrik Rydberg2010-02-011-6/+5
| | | | | | Really too specialized behavior, so better off without it. This reverts commit e880479ff29e57d8b47f08f620b4bccdd2683aa5.
* dangling pointer breaking resume from suspend; fixedHenrik Rydberg2010-01-301-0/+1
|
* sweep feels better without memoryHenrik Rydberg2010-01-301-5/+6
|
* silence debugging outputHenrik Rydberg2010-01-301-4/+13
| | | | | Running the driver daily produces a lot of debug output, so turn it off by default.
* horizontal and vertical scroll now works againHenrik Rydberg2010-01-301-5/+12
| | | | | The buttons reported to X did not include the scrolling buttons, effectively disabling scrolling alltogether. Fixed.
* ABI_XINPUT_VERSION >= 7 supportAndreas Nüßlein2010-01-281-0/+68
|
* Support ABI_XINPUT version between 1 and 7Henrik Rydberg2009-08-231-0/+10
| | | | Compiles on ubuntu versions Intrepid, Jaunty, Karmic.
* Add multi-finger button and scroll from experimentalHenrik Rydberg2009-05-161-6/+45
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* trailing whitespaceHenrik Rydberg2009-05-161-1/+1
|
* Removed the AFL.Henrik Rydberg2009-01-301-2/+0
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* minorHenrik Rydberg2008-11-091-6/+6
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Gesture interface in placeHenrik Rydberg2008-11-091-33/+13
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* ... and button brought backHenrik Rydberg2008-11-081-2/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* matching stable!Henrik Rydberg2008-11-081-11/+15
| | | | | | however, now crashes X occasionally... stream overload? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* cleanupHenrik Rydberg2008-11-081-6/+14
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* cleanupHenrik Rydberg2008-11-081-38/+32
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* ok, down to minimal working configHenrik Rydberg2008-11-081-57/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* did not work, confused with missing library function.Henrik Rydberg2008-11-081-8/+62
| | | | | | Now it *does* work - go back and reduce to fit. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* and now buttons workHenrik Rydberg2008-11-071-0/+5
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* and now it works!Henrik Rydberg2008-11-071-3/+11
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* almost there...Henrik Rydberg2008-11-071-3/+61
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Works nicely - state output seems reasonableHenrik Rydberg2008-11-071-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* ok, fast (but not fastest) matcher in place, no check output...Henrik Rydberg2008-11-061-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* state added, now do the matchingHenrik Rydberg2008-11-061-5/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* event loop works, buffer works, now look at synched eventHenrik Rydberg2008-11-061-1/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* grab and open/close device, now enters read (and crashes)Henrik Rydberg2008-11-061-49/+54
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Driver stages in place - should one support multipleHenrik Rydberg2008-11-061-22/+101
| | | | | | device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Break out capabilitiesHenrik Rydberg2008-11-051-124/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* add the culpritHenrik Rydberg2008-11-041-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* almost working module codeHenrik Rydberg2008-11-041-25/+46
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Try again, after adding the defines from synapticsHenrik Rydberg2008-11-041-1/+12
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* a bit further towards something useful. currently linking problemsHenrik Rydberg2008-11-041-203/+161
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Initial version: adding some filesHenrik Rydberg2008-11-031-0/+241
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>