diff options
author | Ulf Brosziewski <bru@cvs.openbsd.org> | 2017-05-08 20:55:30 +0000 |
---|---|---|
committer | Ulf Brosziewski <bru@cvs.openbsd.org> | 2017-05-08 20:55:30 +0000 |
commit | 54afecbd240a86e67d3e4b5e2ae4f0ca58778389 (patch) | |
tree | 09a0d2006b0cd5e39d9969141b027820342b5c29 /sys/dev/pckbc | |
parent | f1b5aca91094613ffed617cc1e1643ddb36cb81f (diff) |
improved coordinate filters
ok mpi@
Diffstat (limited to 'sys/dev/pckbc')
-rw-r--r-- | sys/dev/pckbc/pms.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index 0aeeedfcd73..80f6cfa1d25 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.74 2017/03/06 09:06:20 mpi Exp $ */ +/* $OpenBSD: pms.c,v 1.75 2017/05/08 20:55:29 bru Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -236,6 +236,10 @@ static struct wsmouse_param synaptics_params[] = { { WSMOUSECFG_PRESSURE_HI, SYNAPTICS_PRESSURE_HI } }; +static struct wsmouse_param elantech_v4_params[] = { + { WSMOUSECFG_STRONG_HYSTERESIS, 0 } +}; + int pmsprobe(struct device *, void *, void *); void pmsattach(struct device *, struct device *, void *); int pmsactivate(struct device *, int); @@ -2042,7 +2046,8 @@ pms_enable_elantech_v4(struct pms_softc *sc) sc->elantech = NULL; goto err; } - if (wsmouse_configure(sc->sc_wsmousedev, NULL, 0)) { + if (wsmouse_configure(sc->sc_wsmousedev, + elantech_v4_params, nitems(elantech_v4_params))) { free(sc->elantech, M_DEVBUF, 0); sc->elantech = NULL; printf("%s: setup failed\n", DEVNAME(sc)); |