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: Maintain the left/right buttons ...
details: https://anonhg.NetBSD.org/src/rev/0401f8e9edee
branches: trunk
changeset: 746433:0401f8e9edee
user: nia <nia%NetBSD.org@localhost>
date: Tue Mar 31 19:08:19 2020 +0000
description:
synaptics: Maintain the left/right buttons when up/down are remapped
Reported on current-users by Mandacar? Cascavel
diffstat:
sys/dev/pckbport/synaptics.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 6aa94017bce5 -r 0401f8e9edee sys/dev/pckbport/synaptics.c
--- a/sys/dev/pckbport/synaptics.c Tue Mar 31 16:50:31 2020 +0000
+++ b/sys/dev/pckbport/synaptics.c Tue Mar 31 19:08:19 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: synaptics.c,v 1.63 2020/03/27 11:10:07 nia Exp $ */
+/* $NetBSD: synaptics.c,v 1.64 2020/03/31 19:08:19 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.63 2020/03/27 11:10:07 nia Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.64 2020/03/31 19:08:19 nia Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1110,8 +1110,8 @@
break;
case 3:
/* Do left/right button emulation using up/down buttons */
- sp.sp_left = sp.sp_up;
- sp.sp_right = sp.sp_down;
+ sp.sp_left = sp.sp_left | sp.sp_up;
+ sp.sp_right = sp.sp_right | sp.sp_down;
sp.sp_up = sp.sp_down = 0;
break;
default:
Home |
Main Index |
Thread Index |
Old Index