summaryrefslogtreecommitdiff
path: root/src/state.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename State to HWStateHenrik Rydberg2010-04-151-162/+0
| | | | | | | Rename the hardware state struct State to HWState, to make room for additional state structures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Third time around (and use the next branch for collaboration)Henrik Rydberg2010-04-151-3/+3
| | | | | | | | | | | | There is (obviously, from the recent commit flaws) a need to keep a volatile branch for collaboration, to allow for digested commits in master. The next branch will rebase occasionally, so one cannot rely on commit ids from that branch. This patch corrects the commit mistake for the third time, to never change that line again. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Correct double commit mistakeHenrik Rydberg2010-03-211-1/+2
| | | | | | | | | The recent patch sequence got slightly contaminated with versions of abs15() by mistake. On top of it all, the one committed did the wrong thing. This patch corrects abs15() to do simple clamping of values outside the allowed range. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add millisecond event timesHenrik Rydberg2010-03-211-0/+3
| | | | | | | | Expand the (x, y) notion of the current hardware events to the more useful (x, y, t) notion. This patch was inspired by a gesture patch from Arturo Castro <arturo@openframeworks.cc>. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Comply with MT syncronization protocolHenrik Rydberg2010-03-211-8/+1
| | | | | | | | | The latest semantic clarifications in the kernel MT protocol allow SYN_MT_REPORT to be sent without actually sending any finger data. Add a mask to the hardware data so that the data actually read can be tracked. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add support for the ABS_MT_PRESSURE eventHenrik Rydberg2010-03-211-1/+3
| | | | | | | The kernel MT api was recently updated to include the ABS_MT_PRESSURE event. This patch adds it to the hardware structure. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Matcher: convert distance matrix to integerHenrik Rydberg2010-03-211-4/+17
| | | | | | | | In order to reduce the requirements on the cpu environment running the matcher, the floating-point operations are converted to integer. Care is taken as to not overflow the distance matrix. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: stick to kernel-style formattingalpha-1Henrik Rydberg2010-02-011-25/+12
| | | | | | 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.
* fixed a bug in touching_fingerMika Kuoppala2009-12-181-1/+1
| | | | Signed-off-by: Mika Kuoppala <mika.kuoppala@nokia.com>
* Add multi-finger button and scroll from experimentalHenrik Rydberg2009-05-161-2/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* matching stable!Henrik Rydberg2008-11-081-3/+35
| | | | | | however, now crashes X occasionally... stream overload? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* cleanupHenrik Rydberg2008-11-081-36/+19
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* safe wrap-aroundHenrik Rydberg2008-11-071-0/+8
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Works nicely - state output seems reasonableHenrik Rydberg2008-11-071-33/+50
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* ok, fast (but not fastest) matcher in place, no check output...Henrik Rydberg2008-11-061-4/+68
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* state added, now do the matchingHenrik Rydberg2008-11-061-0/+38
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>