summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2008-08-26 19:46:23 +0000
committermiod <miod@openbsd.org>2008-08-26 19:46:23 +0000
commit6131dddaabd08aecc112e1130b71ce04ed03fcf1 (patch)
treea5c897bc72f25b792c2a59f688a01d9673487586
parentBetter strategy to single out onboard bge(4)'s on sparc64 machines. (diff)
downloadwireguard-openbsd-6131dddaabd08aecc112e1130b71ce04ed03fcf1.tar.xz
wireguard-openbsd-6131dddaabd08aecc112e1130b71ce04ed03fcf1.zip
Stylus pressure sensor is active low, so invert the logic converting it
to button #5.
-rw-r--r--sys/arch/vax/dec/vsms_ws.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/dec/vsms_ws.c b/sys/arch/vax/dec/vsms_ws.c
index 981002b019b..1147175bcc5 100644
--- a/sys/arch/vax/dec/vsms_ws.c
+++ b/sys/arch/vax/dec/vsms_ws.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vsms_ws.c,v 1.3 2008/08/22 21:05:07 miod Exp $ */
+/* $OpenBSD: vsms_ws.c,v 1.4 2008/08/26 19:46:23 miod Exp $ */
/* $NetBSD: dzms.c,v 1.1 2000/12/02 17:03:55 ragge Exp $ */
/*
@@ -366,7 +366,7 @@ lkms_input_tablet(struct lkms_softc *sc, int data)
sc->buttons |= WSMS_BUTTON(3);
if ((data & FRAME_T_B4) != 0)
sc->buttons |= WSMS_BUTTON(4);
- if ((data & FRAME_T_PR) != 0)
+ if ((data & FRAME_T_PR) == 0)
sc->buttons |= WSMS_BUTTON(5);
break;
case 1: