diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2004-12-06 11:08:24 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2004-12-06 11:08:24 +0000 |
commit | 932219ebb9c68cf9e9ad8171d7b3f08da961c568 (patch) | |
tree | b92c8cf0895bfb6d03499f3e18668e75c56b8b3f | |
parent | 6fb10a5ab10291b39fb5a141e8de969a1ef8ae75 (diff) |
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.c | 4 |
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; |