aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtouch.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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-121-28/+4
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify event readingHenrik Rydberg2010-06-211-7/+27
| | | | | | | 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>
* Add tapping logicHenrik Rydberg2010-06-161-0/+8
| | | | | | | | 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-161-1/+1
| | | | | | | 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>
* 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>
* refactor: Replace hwdata by mtdevHenrik Rydberg2010-06-161-13/+7
| | | | | | | | 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>
* janitor: Split gesture code into memory refresh and parseHenrik Rydberg2010-05-141-0/+4
| | | | | | | | 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>
* Introduce MemoryHenrik Rydberg2010-04-151-0/+1
| | | | | | Add the Memory structure to hold the multitouch parsing state. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add MTState debug outputHenrik Rydberg2010-04-151-0/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce the MTStateHenrik Rydberg2010-04-151-3/+5
| | | | | | | | | | | | | | | The HWState keeps, for good reason, both touching fingers and fingers going away. However, this implies that additional logic is needed to keep track of the number of actual touching fingers. In particular the test for touching fingers is somewhat misplaced in hwstate.c. Moreover, HWState should only exist in one instance, since it contains data which does not need to be referred to during gesture extraction. This patch introduces the MTState structure, which keeps more digested data for gesture extraction. In particular, it only keeps the actual touches. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Rename State to HWStateHenrik Rydberg2010-04-151-3/+3
| | | | | | | Rename the hardware state struct State to HWState, to make room for additional state structures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: stick to kernel-style formattingHenrik Rydberg2010-02-011-16/+4
| | | | | | 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
* License and credits resolvedHenrik Rydberg2010-01-301-0/+21
| | | | | | All files are tagged as GPL, and a CREDIT file created with references to the synaptics X driver and the matching code, under their respective MIT and BSD licenses.
* Gesture interface in placeHenrik Rydberg2008-11-091-0/+7
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* cleanupHenrik Rydberg2008-11-081-14/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* state added, now do the matchingHenrik Rydberg2008-11-061-0/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* event loop works, buffer works, now look at synched eventHenrik Rydberg2008-11-061-2/+14
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* grab and open/close device, now enters read (and crashes)Henrik Rydberg2008-11-061-1/+23
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Driver stages in place - should one support multipleHenrik Rydberg2008-11-061-0/+22
device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>