Module Name: src Committed By: nia Date: Tue Mar 31 19:08:19 UTC 2020
Modified Files: src/sys/dev/pckbport: synaptics.c Log Message: synaptics: Maintain the left/right buttons when up/down are remapped Reported on current-users by MandacarĂº Cascavel To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/sys/dev/pckbport/synaptics.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pckbport/synaptics.c diff -u src/sys/dev/pckbport/synaptics.c:1.63 src/sys/dev/pckbport/synaptics.c:1.64 --- src/sys/dev/pckbport/synaptics.c:1.63 Fri Mar 27 11:10:07 2020 +++ src/sys/dev/pckbport/synaptics.c Tue Mar 31 19:08:19 2020 @@ -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 @@ pms_synaptics_parse(struct pms_softc *ps 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: