Rewrote timer handling so that the driver no longer depends

on packets arriving 1s after the last state change. (The kernel driver
only reports to user space when something changes.) Use wall clock time
instead of packet counting for time computations. This change also
means that configurable times are now specified in milliseconds instead
of units of 1/80s.
This commit is contained in:
Peter Osterlund
2003-06-19 01:19:38 +02:00
parent dfb3d4236e
commit 799ea3f9cc
5 changed files with 454 additions and 389 deletions

View File

@@ -49,9 +49,9 @@ static struct Parameter params[] = {
DEFINE_PAR("BottomEdge", bottom_edge, PT_INT, 0, 10000),
DEFINE_PAR("FingerLow", finger_low, PT_INT, 0, 255),
DEFINE_PAR("FingerHigh", finger_high, PT_INT, 0, 255),
DEFINE_PAR("MaxTapTime", tap_time, PT_INT, 0, 75),
DEFINE_PAR("MaxTapTime", tap_time, PT_INT, 0, 1000),
DEFINE_PAR("MaxTapMove", tap_move, PT_INT, 0, 2000),
DEFINE_PAR("EmulateMidButtonTime", emulate_mid_button_time, PT_INT, 0, 75),
DEFINE_PAR("EmulateMidButtonTime", emulate_mid_button_time, PT_INT, 0, 1000),
DEFINE_PAR("VertScrollDelta", scroll_dist_vert, PT_INT, 5, 1000),
DEFINE_PAR("HorizScrollDelta", scroll_dist_horiz, PT_INT, 5, 1000),
DEFINE_PAR("MinSpeed", min_speed, PT_DOUBLE, 0, 1.0),