Update support for Synaptics Touchpads (Volume IV)

o Change the motion calculation to result in
   a more reasonable speed of motion

This should fix the 'aiming' problems people have reported.  It also
mitigates (but doesn't completely solve) the 'stalling' problems at
very low speeds.

Tested by:	many subscribers to -current
Approved by:	njl
This commit is contained in:
Philip Paeps 2004-08-08 01:10:23 +00:00
parent bc1418f61c
commit 1b5dd3aee5
2 changed files with 4 additions and 4 deletions

View File

@ -2539,8 +2539,8 @@ psmsoftintr(void *arg)
x0 = (x0 + sc->xold * 3) / 4;
y0 = (y0 + sc->yold * 3) / 4;
x = (x0 - sc->xold) / 4;
y = (y0 - sc->yold) / 4;
x = (x0 - sc->xold) * 10 / 85;
y = (y0 - sc->yold) * 10 / 85;
} else {
sc->flags |= PSM_FLAGS_FINGERDOWN;
}

View File

@ -2539,8 +2539,8 @@ psmsoftintr(void *arg)
x0 = (x0 + sc->xold * 3) / 4;
y0 = (y0 + sc->yold * 3) / 4;
x = (x0 - sc->xold) / 4;
y = (y0 - sc->yold) / 4;
x = (x0 - sc->xold) * 10 / 85;
y = (y0 - sc->yold) * 10 / 85;
} else {
sc->flags |= PSM_FLAGS_FINGERDOWN;
}