aboutsummaryrefslogtreecommitdiffstats
path: root/src/hwdata.c
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Move filesHenrik Rydberg2010-06-161-133/+0
| | | | | | | | | | 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>
* Hold MT data during pure button eventsHenrik Rydberg2010-04-181-1/+7
| | | | | | | | | | | Some devices send button events through a separate device, causing the driver to temporarily lose the MT state. As a result, spurious button events are emitted in conjunction with multi-finger clicks. This patch makes sure that the MT state is updated only after receiving MT data, restoring click normality. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Correctly report zero fingersHenrik Rydberg2010-04-181-1/+2
| | | | | | | | | | | | This bug has been around since before alpha1, and yet the topic of commit c7ed4c, prior to alpha1, was about precisely this; With the bug, the last tracking id will sometimes be continued with a new touch, resulting in a cursor jump. This patch correctly sets zero fingers in HWData after receiving a zero-finger event. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Use the event source time instead of the arrival timeHenrik Rydberg2010-04-151-11/+4
| | | | | | | | The SYN_REPORT event time is equal to the time when the collective event was produced in the kernel driver, and thus better represents the actual device timings than the current arrival time. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add millisecond event timesHenrik Rydberg2010-03-211-0/+9
| | | | | | | | 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-13/+36
| | | | | | | | | 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-0/+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>
* janitor: stick to kernel-style formattingHenrik Rydberg2010-02-011-9/+1
| | | | | | 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.
* adapt to final version of MT protocolHenrik Rydberg2009-05-161-20/+13
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* drop packets out of syncHenrik Rydberg2008-11-091-0/+4
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* under heavy load, it seems the event order becomes scrambled, and it isHenrik Rydberg2008-11-091-0/+2
| | | | | | | possible to receive ABS_MT events outside of the MT synchronization events. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* cleanupHenrik Rydberg2008-11-081-6/+14
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* state added, now do the matchingHenrik Rydberg2008-11-061-3/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* event loop works, buffer works, now look at synched eventHenrik Rydberg2008-11-061-22/+10
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Driver stages in place - should one support multipleHenrik Rydberg2008-11-061-0/+90
device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>