summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2004-12-06 11:08:23 +0000
committerdlg <dlg@openbsd.org>2004-12-06 11:08:23 +0000
commit23c733285b031e0125c82569cd4bb9c37906cec1 (patch)
tree1224f411ff17173a8b2b56fd06d019170cd13678
parentCheck if TEST_SSH_SSHD is a full path to sshd before searching; ok markus@ (diff)
downloadwireguard-openbsd-23c733285b031e0125c82569cd4bb9c37906cec1.tar.xz
wireguard-openbsd-23c733285b031e0125c82569cd4bb9c37906cec1.zip
some mice have more than 7 buttons, so raise the limit in the driver.
fix submitted by Wolfgang S. Rupprecht in pr4015
-rw-r--r--sys/dev/usb/ums.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 25480133aa0..93fdcb0c536 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ums.c,v 1.14 2004/07/08 22:18:44 deraadt Exp $ */
+/* $OpenBSD: ums.c,v 1.15 2004/12/06 11:08:23 dlg Exp $ */
/* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -86,7 +86,7 @@ int umsdebug = 0;
#define PS2MBUTMASK x04
#define PS2BUTMASK 0x0f
-#define MAX_BUTTONS 7 /* must not exceed size of sc_buttons */
+#define MAX_BUTTONS 16 /* must not exceed size of sc_buttons */
struct ums_softc {
struct uhidev sc_hdev;