diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-04-14 15:39:44 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-04-15 06:10:08 +0200 |
| commit | d9bbb8d87508677dda2be8df7e26213774f3166c (patch) | |
| tree | 989a541415c1052f648a7aaa27ac9837afcd5170 /src/memory.h | |
| parent | 428a29ac5dc8ebf6a1092c2d989fa020d79791af (diff) | |
Extract moving fingers
The current code determines the moving, scrolling and swiping gestures
based on the number of fingers on the trackpad, including the resting
fingers at the bottom of the pad. With information about all fingers
at hand, it is possible to determine which fingers on the trackpad are
participating in a moving gesture. This patch computes the movement
based on the pointing fingers only, and uses that number to determine
the type of moving gesture.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/memory.h')
| -rw-r--r-- | src/memory.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/memory.h b/src/memory.h index 3b947b9..5e8a31c 100644 --- a/src/memory.h +++ b/src/memory.h | |||
| @@ -25,10 +25,13 @@ | |||
| 25 | #include "mtstate.h" | 25 | #include "mtstate.h" |
| 26 | 26 | ||
| 27 | struct Memory { | 27 | struct Memory { |
| 28 | unsigned btdata, pointing; | 28 | unsigned btdata, pointing, moving; |
| 29 | int npoint, ybar; | 29 | int npoint, ybar; |
| 30 | mstime_t move_time; | 30 | mstime_t move_time; |
| 31 | int move_x, move_y; | 31 | int dx[DIM_FINGER], dy[DIM_FINGER], nmove; |
| 32 | |||
| 33 | |||
| 34 | |||
| 32 | }; | 35 | }; |
| 33 | 36 | ||
| 34 | void init_memory(struct Memory *mem); | 37 | void init_memory(struct Memory *mem); |
