Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pckbport synaptics: Check for single-finger event ji...
details: https://anonhg.NetBSD.org/src/rev/6324ca0edaea
branches: trunk
changeset: 970205:6324ca0edaea
user: nia <nia%NetBSD.org@localhost>
date: Sun Mar 15 22:44:32 2020 +0000
description:
synaptics: Check for single-finger event jitter in all cases.
I now have smooth two-finger scrolling.
diffstat:
sys/dev/pckbport/synaptics.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diffs (39 lines):
diff -r 5a908d0e777a -r 6324ca0edaea sys/dev/pckbport/synaptics.c
--- a/sys/dev/pckbport/synaptics.c Sun Mar 15 22:19:00 2020 +0000
+++ b/sys/dev/pckbport/synaptics.c Sun Mar 15 22:44:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: synaptics.c,v 1.60 2020/03/14 22:23:17 nia Exp $ */
+/* $NetBSD: synaptics.c,v 1.61 2020/03/15 22:44:32 nia Exp $ */
/*
* Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
#include "opt_pms.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.60 2020/03/14 22:23:17 nia Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.61 2020/03/15 22:44:32 nia Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1295,19 +1295,12 @@
fingers = 3;
break;
- case SYNAPTICS_WIDTH_PEN:
- fingers = 1;
- break;
-
default:
/*
* The width value can report spurious single-finger
* events after a multi-finger event.
*/
- if (sc->prev_fingers > 1)
- fingers = sc->prev_fingers;
- else
- fingers = 1;
+ fingers = sc->prev_fingers <= 1 ? 1 : sc->prev_fingers;
break;
}
}
Home |
Main Index |
Thread Index |
Old Index