aboutsummaryrefslogtreecommitdiffstats
path: root/src/memory.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Same version, but using the mtdev library.Henrik Rydberg2010-10-121-2/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Move tapping parameter to memory.cHenrik Rydberg2010-06-171-1/+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>
* Add tapping logicHenrik Rydberg2010-06-161-0/+84
| | | | | | | | 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>
* Increase stability against thumb and edge touchesHenrik Rydberg2010-06-161-1/+1
| | | | | | | | | 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>
* refactor: Replace hwdata by mtdevHenrik Rydberg2010-06-161-16/+17
| | | | | | | | 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: Use the bitmask_t typeHenrik Rydberg2010-06-161-1/+1
| | | | | | | 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-161-3/+7
| | | | | | | Use the generated abs2mt mapping to simplify the MT device capabilities. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Disable motion with resting thumbsHenrik Rydberg2010-05-141-4/+9
| | | | | | | | 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>
* Refactor parsor memory usageHenrik Rydberg2010-05-141-47/+52
| | | | | | | 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-141-0/+159
| | | | | | | | 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>
* Simplify bit bookkeepingHenrik Rydberg2010-05-141-2/+0
| | | | | | | | 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 memory debug convenience routinesHenrik Rydberg2010-04-151-0/+12
| | | | | | Output parsing memory values, switched off by default. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Keep logical buttons separate from the hardware onesHenrik Rydberg2010-04-151-0/+1
| | | | | | | | | The button extraction currently modifies the MTState buttons, upsetting the semantics in a bad way. This patch adds the logical button state to the Memory structure, and uses it to compute the logical button change. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce MemoryHenrik Rydberg2010-04-151-0/+26
Add the Memory structure to hold the multitouch parsing state. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>