Hi,
I'm using a Wacom CTL-490 to draw on virtual whiteboards in online
meetings.
Compared to linux/windows, it needs a lot of pressure to draw something
on OpenBSD. This makes writing pretty hard.
In OpenBSD, a tip-pressure of >10 is required to activate button 0.
I'm not sure why this number was chosen. I assumed that it might be
because pressure reporting could be jittering.
I've set it to >0 for testing and I couldn't be happier. I tested it
with two pens and didn't experience any false-activation.
Would this patch okay with you?
uwacom author on cc.
Best Regards,
Stefan
Index: sys/dev/usb/uwacom.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/uwacom.c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 uwacom.c
--- sys/dev/usb/uwacom.c 23 Aug 2020 11:08:02 -0000 1.2
+++ sys/dev/usb/uwacom.c 3 Jun 2021 14:40:37 -0000
@@ -172,7 +172,7 @@ uwacom_intr(struct uhidev *addr, void *b
buttons |= (1 << i);
/* button 0 reporting is flaky, use tip pressure for it */
- if (pressure >10)
+ if (pressure)
buttons |= 1;
else
buttons &= ~1;