summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_quirks.h
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-11-08 23:58:33 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-11-08 23:58:33 +0000
commitbb41862968a2c99dd5f360e59403c61dcf8b2aae (patch)
treef8e2b9733366632c5a14d0409dd23482c4bee693 /sys/dev/usb/usb_quirks.h
parent78a036a798eb2c4914b53fdd9c1e406acfbc669c (diff)
downloadFreeBSD-src-bb41862968a2c99dd5f360e59403c61dcf8b2aae.zip
FreeBSD-src-bb41862968a2c99dd5f360e59403c61dcf8b2aae.tar.gz
The Qtronix keyboard has a built in PS/2 port for a mouse.
It however posts a bogus button up event once in a while. Whenever we receive dx=dy=dz=buttons=0 we postpone adding it to the queue for 50msecs with a timeout. If in the meantime something else is posted the event is ignored. This avoids the problem Nik Sayer reported. He noticed that X windows would drop and pick up a window once in a while. Thanks, Nik, for supplying me with the keyboard to fix the problem!
Diffstat (limited to 'sys/dev/usb/usb_quirks.h')
-rw-r--r--sys/dev/usb/usb_quirks.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_quirks.h b/sys/dev/usb/usb_quirks.h
index 6fea94e..d03f1a6 100644
--- a/sys/dev/usb/usb_quirks.h
+++ b/sys/dev/usb/usb_quirks.h
@@ -45,6 +45,7 @@ struct usbd_quirks {
#define UQ_MS_REVZ 0x04 /* mouse has Z-axis reversed */
#define UQ_NO_STRINGS 0x08 /* string descriptors are broken. */
#define UQ_BAD_ADC 0x10 /* bad audio spec version number. */
+#define UQ_SPUR_BUT_UP 0x20 /* spurious mouse button up events */
};
extern struct usbd_quirks usbd_no_quirk;
OpenPOWER on IntegriCloud