Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/adb Make the movement-while-tapping threshold smalle...
details: https://anonhg.NetBSD.org/src/rev/e6b31ec93c36
branches: trunk
changeset: 757046:e6b31ec93c36
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Aug 11 16:54:10 2010 +0000
description:
Make the movement-while-tapping threshold smaller so moving the cursor by a
few pixels won't trigger a button event. This should probably become a sysctl
knob.
While there, remove some commented out stuff and fix a typo.
diffstat:
sys/dev/adb/adb_ms.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r de655d6d0a0a -r e6b31ec93c36 sys/dev/adb/adb_ms.c
--- a/sys/dev/adb/adb_ms.c Wed Aug 11 16:41:19 2010 +0000
+++ b/sys/dev/adb/adb_ms.c Wed Aug 11 16:54:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adb_ms.c,v 1.8 2008/03/26 18:04:15 matt Exp $ */
+/* $NetBSD: adb_ms.c,v 1.9 2010/08/11 16:54:10 macallan Exp $ */
/*
* Copyright (C) 1998 Colin Wood
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adb_ms.c,v 1.8 2008/03/26 18:04:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_ms.c,v 1.9 2010/08/11 16:54:10 macallan Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -107,7 +107,6 @@
static int adbms_match(device_t, cfdata_t, void *);
static void adbms_attach(device_t, device_t, void *);
static void ems_init(struct adbms_softc *);
-//static void ms_processevent(adb_event_t *event, struct adbms_softc *);
static void init_trackpad(struct adbms_softc *);
static void adbms_init_mouse(struct adbms_softc *);
static void adbms_init_turbo(struct adbms_softc *);
@@ -614,7 +613,7 @@
/* finger up */
if (sc->sc_down) {
if (((sc->sc_x * sc->sc_x +
- sc->sc_y * sc->sc_y) < 20) &&
+ sc->sc_y * sc->sc_y) < 3) &&
(sc->sc_wsmousedev)) {
/*
* if there wasn't much movement between
@@ -646,7 +645,7 @@
/* finger up */
if (sc->sc_down) {
if (((sc->sc_x * sc->sc_x +
- sc->sc_y * sc->sc_y) < 20) &&
+ sc->sc_y * sc->sc_y) < 3) &&
(sc->sc_wsmousedev)) {
/*
* if there wasn't much movement between
@@ -758,7 +757,7 @@
}
} else {
while ((sc->sc_msg_len == -1) && (cnt < timeout)) {
- tsleep(&sc->sc_event, 0, "adbkbdio", hz);
+ tsleep(&sc->sc_event, 0, "adbmsio", hz);
cnt++;
}
}
Home |
Main Index |
Thread Index |
Old Index