diff options
| author | Arturo Castro <arturo@openframeworks.cc> | 2010-04-11 00:21:38 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-04-15 06:10:07 +0200 |
| commit | 1b9ca90240fc547c140de76d7e2abb51ee4f8d0a (patch) | |
| tree | 6f6a762bf196e481fcfd2533800f73831d724de6 /src/memory.h | |
| parent | 40b3cd568e8cc64a5f7f748f2003d90aa5e738ef (diff) | |
Delay movement after a finger configuration change
The current code responds to finger movement immediately after
a finger has been placed on the trackpad, even if the touch is
accidental. This patch delays the effect of the finger by 70 ms,
resulting in fewer accidental movements.
Signed-off-by: Arturo Castro <arturo@openframeworks.cc>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/memory.h')
| -rw-r--r-- | src/memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memory.h b/src/memory.h index a6c51ec..0ab4d04 100644 --- a/src/memory.h +++ b/src/memory.h | |||
| @@ -26,6 +26,8 @@ | |||
| 26 | 26 | ||
| 27 | struct Memory { | 27 | struct Memory { |
| 28 | unsigned btdata; | 28 | unsigned btdata; |
| 29 | mstime_t move_time; | ||
| 30 | int move_x, move_y; | ||
| 29 | }; | 31 | }; |
| 30 | 32 | ||
| 31 | void init_memory(struct Memory *mem); | 33 | void init_memory(struct Memory *mem); |
