-/* $OpenBSD: wsmousevar.h,v 1.14 2017/03/06 09:53:01 mpi Exp $ */
+/* $OpenBSD: wsmousevar.h,v 1.15 2017/06/18 13:21:48 bru Exp $ */
/* $NetBSD: wsmousevar.h,v 1.4 2000/01/08 02:57:24 takemura Exp $ */
/*
* recognize multiple contacts can always pass 0 as contact count to
* wsmouse_touch).
*/
-#define WSMOUSE_DEFAULT_PRESSURE -1
+/* Use a synaptics-compatible value. */
+#define WSMOUSE_DEFAULT_PRESSURE 45
struct device;
-/* $OpenBSD: wstpad.c,v 1.6 2017/06/06 19:47:22 bru Exp $ */
+/* $OpenBSD: wstpad.c,v 1.7 2017/06/18 13:21:48 bru Exp $ */
/*
* Copyright (c) 2015, 2016 Ulf Brosziewski
wstpad_filter(input, &dx, &dy);
- if (dx || dy) {
- input->motion.dx = dx;
- input->motion.dy = dy;
- if ((dx || dy) && !(input->motion.sync & SYNC_DELTAS)) {
- input->motion.dz = input->motion.dw = 0;
- input->motion.sync |= SYNC_DELTAS;
- }
+ input->motion.dx = dx;
+ input->motion.dy = dy;
+ if ((dx || dy) && !(input->motion.sync & SYNC_DELTAS)) {
+ input->motion.dz = input->motion.dw = 0;
+ input->motion.sync |= SYNC_DELTAS;
}
if (input->tp != NULL)