diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-15 20:32:14 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 02:28:08 +0200 |
| commit | 753a645f463f2d72234554bc211cc32f65129929 (patch) | |
| tree | 5b87d5f0781b9c27c63074326f8a3cf8e3906419 /include | |
| parent | 78085b21f2dc7b1d49a0c54ab56b567fc195d440 (diff) | |
refactor: Use the bitmask_t type
Use the bitmask_t for all bitfields, to simplify future expansions
to larger bit fields.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
| -rw-r--r-- | include/gestures.h | 2 | ||||
| -rw-r--r-- | include/hwstate.h | 2 | ||||
| -rw-r--r-- | include/memory.h | 6 | ||||
| -rw-r--r-- | include/mtstate.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/include/gestures.h b/include/gestures.h index 2866ba4..2bd4a55 100644 --- a/include/gestures.h +++ b/include/gestures.h | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | #define GS_ROTATE 7 | 34 | #define GS_ROTATE 7 |
| 35 | 35 | ||
| 36 | struct Gestures { | 36 | struct Gestures { |
| 37 | unsigned type, btmask, btdata; | 37 | bitmask_t type, btmask, btdata; |
| 38 | int same_fingers, dx, dy, scale, rot; | 38 | int same_fingers, dx, dy, scale, rot; |
| 39 | }; | 39 | }; |
| 40 | 40 | ||
diff --git a/include/hwstate.h b/include/hwstate.h index 76ed016..07d4ed6 100644 --- a/include/hwstate.h +++ b/include/hwstate.h | |||
| @@ -33,7 +33,7 @@ struct FingerState { | |||
| 33 | 33 | ||
| 34 | struct HWState { | 34 | struct HWState { |
| 35 | struct FingerState finger[DIM_FINGER]; | 35 | struct FingerState finger[DIM_FINGER]; |
| 36 | unsigned button; | 36 | bitmask_t button; |
| 37 | int nfinger; | 37 | int nfinger; |
| 38 | mstime_t evtime; | 38 | mstime_t evtime; |
| 39 | int lastid; | 39 | int lastid; |
diff --git a/include/memory.h b/include/memory.h index 8ffbdab..1a1b688 100644 --- a/include/memory.h +++ b/include/memory.h | |||
| @@ -43,9 +43,9 @@ | |||
| 43 | * | 43 | * |
| 44 | */ | 44 | */ |
| 45 | struct Memory { | 45 | struct Memory { |
| 46 | unsigned btdata, same; | 46 | bitmask_t btdata, same; |
| 47 | unsigned fingers, added, thumb; | 47 | bitmask_t fingers, added, thumb; |
| 48 | unsigned pointing, pending, moving; | 48 | bitmask_t pointing, pending, moving; |
| 49 | int ybar; | 49 | int ybar; |
| 50 | mstime_t mvhold, mvforget; | 50 | mstime_t mvhold, mvforget; |
| 51 | int dx[DIM_FINGER], dy[DIM_FINGER]; | 51 | int dx[DIM_FINGER], dy[DIM_FINGER]; |
diff --git a/include/mtstate.h b/include/mtstate.h index b5f5dd1..b6b8e8d 100644 --- a/include/mtstate.h +++ b/include/mtstate.h | |||
| @@ -32,7 +32,7 @@ struct MTFinger { | |||
| 32 | struct MTState { | 32 | struct MTState { |
| 33 | struct MTFinger finger[DIM_FINGER]; | 33 | struct MTFinger finger[DIM_FINGER]; |
| 34 | int nfinger; | 34 | int nfinger; |
| 35 | unsigned button; | 35 | bitmask_t button; |
| 36 | mstime_t evtime; | 36 | mstime_t evtime; |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
