-/* $OpenBSD: pms.c,v 1.75 2017/05/08 20:55:29 bru Exp $ */
+/* $OpenBSD: pms.c,v 1.76 2017/06/06 21:53:07 bru Exp $ */
/* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
{ 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);
sc->elantech = NULL;
goto err;
}
- if (wsmouse_configure(sc->sc_wsmousedev,
- elantech_v4_params, nitems(elantech_v4_params))) {
+ if (wsmouse_configure(sc->sc_wsmousedev, NULL, 0)) {
free(sc->elantech, M_DEVBUF, 0);
sc->elantech = NULL;
printf("%s: setup failed\n", DEVNAME(sc));
-/* $OpenBSD: ubcmtp.c,v 1.16 2017/05/08 20:55:29 bru Exp $ */
+/* $OpenBSD: ubcmtp.c,v 1.17 2017/06/06 21:53:07 bru Exp $ */
/*
* Copyright (c) 2013-2014, joshua stein <jcs@openbsd.org>
/* Use a constant, synaptics-compatible pressure value for now. */
#define DEFAULT_PRESSURE 40
-static struct wsmouse_param ubcmtp_params[] = {
- { WSMOUSECFG_STRONG_HYSTERESIS, 0 }
-};
-
struct ubcmtp_limit {
int limit;
int min;
hw->mt_slots = UBCMTP_MAX_FINGERS;
hw->flags = WSMOUSEHW_MT_TRACKING;
- return wsmouse_configure(sc->sc_wsmousedev,
- ubcmtp_params, nitems(ubcmtp_params));
+ return wsmouse_configure(sc->sc_wsmousedev, NULL, 0);
}
int
-/* $OpenBSD: wsmouseinput.h,v 1.7 2017/05/08 20:55:29 bru Exp $ */
+/* $OpenBSD: wsmouseinput.h,v 1.8 2017/06/06 21:53:07 bru Exp $ */
/*
* Copyright (c) 2015, 2016 Ulf Brosziewski
#define CONFIGURED (1 << 18)
/* filter.mode (bit 0-2: smoothing factor, bit 3: hysteresis type) */
+#define WEAK_HYSTERESIS 0
#define STRONG_HYSTERESIS (1 << 3)
#define SMOOTHING_MASK 7
-#define FILTER_MODE_DEFAULT STRONG_HYSTERESIS
+#define FILTER_MODE_DEFAULT WEAK_HYSTERESIS
struct evq_access {
struct wseventvar *evar;