Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pckbport * Increase the default scaling of the two f...
details: https://anonhg.NetBSD.org/src/rev/5ca7857a9ac0
branches: trunk
changeset: 995052:5ca7857a9ac0
user: blymn <blymn%NetBSD.org@localhost>
date: Tue Dec 04 10:10:15 2018 +0000
description:
* Increase the default scaling of the two finger scroll to make it
less sensitive
* Fix range check for hw.synaptics.scale_z so it can be set with sysctl
diffstat:
sys/dev/pckbport/synaptics.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r e0874effe807 -r 5ca7857a9ac0 sys/dev/pckbport/synaptics.c
--- a/sys/dev/pckbport/synaptics.c Tue Dec 04 09:47:25 2018 +0000
+++ b/sys/dev/pckbport/synaptics.c Tue Dec 04 10:10:15 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: synaptics.c,v 1.45 2018/11/28 09:14:03 blymn Exp $ */
+/* $NetBSD: synaptics.c,v 1.46 2018/12/04 10:10:15 blymn 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.45 2018/11/28 09:14:03 blymn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.46 2018/12/04 10:10:15 blymn Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -115,7 +115,7 @@
static int synaptics_two_fingers_emul = 0;
static int synaptics_scale_x = 16;
static int synaptics_scale_y = 16;
-static int synaptics_scale_z = 1;
+static int synaptics_scale_z = 32;
static int synaptics_max_speed_x = 32;
static int synaptics_max_speed_y = 32;
static int synaptics_max_speed_z = 2;
@@ -867,7 +867,8 @@
return (EINVAL);
} else
if (node.sysctl_num == synaptics_scale_x_nodenum ||
- node.sysctl_num == synaptics_scale_y_nodenum) {
+ node.sysctl_num == synaptics_scale_y_nodenum ||
+ node.sysctl_num == synaptics_scale_z_nodenum) {
if (t < 1 || t > (SYNAPTICS_EDGE_MAX / 4))
return (EINVAL);
} else
Home |
Main Index |
Thread Index |
Old Index