diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2010-03-20 13:39:50 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-03-21 14:56:12 +0100 |
commit | ea6cfa421b7cef91eba85c5144eec14288c41c4c (patch) | |
tree | 234fc185a35b920dda4486829e63c6aafe2ef235 | |
parent | 14f65b1a3ddee4e70dc4c67234c3fccdd647af96 (diff) | |
download | xorg-input-kobomultitouch-ea6cfa421b7cef91eba85c5144eec14288c41c4c.tar.gz xorg-input-kobomultitouch-ea6cfa421b7cef91eba85c5144eec14288c41c4c.tar.bz2 xorg-input-kobomultitouch-ea6cfa421b7cef91eba85c5144eec14288c41c4c.zip |
Matcher: support up to 32 fingers
Make the matcher support up to 32 fingers instead of the current 16.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r-- | match/match.c | 4 | ||||
-rw-r--r-- | match/match.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/match/match.c b/match/match.c index dbb14ba..a3f4deb 100644 --- a/match/match.c +++ b/match/match.c @@ -35,8 +35,8 @@ * */ -typedef unsigned short col_t[1]; -typedef unsigned short mat_t[DIM_FINGER]; +typedef unsigned col_t[1]; +typedef unsigned mat_t[DIM_FINGER]; #define GET1(m, x) ((m[0] >> (x)) & 1U) #define SET1(m, x) (m[0] |= (1U << (x))) diff --git a/match/match.h b/match/match.h index 620d046..0c4274e 100644 --- a/match/match.h +++ b/match/match.h @@ -28,7 +28,7 @@ * Bitmasks are used extensively. */ -#define DIM_FINGER 16 +#define DIM_FINGER 32 #define DIM2_FINGER (DIM_FINGER * DIM_FINGER) #define MIN(a, b) ((a) < (b) ? (a) : (b)) |