From 54afecbd240a86e67d3e4b5e2ae4f0ca58778389 Mon Sep 17 00:00:00 2001 From: Ulf Brosziewski Date: Mon, 8 May 2017 20:55:30 +0000 Subject: improved coordinate filters ok mpi@ --- sys/dev/pckbc/pms.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/dev/pckbc') 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)); -- cgit v1.2.3