From 932219ebb9c68cf9e9ad8171d7b3f08da961c568 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 6 Dec 2004 11:08:24 +0000 Subject: some mice have more than 7 buttons, so raise the limit in the driver. fix submitted by Wolfgang S. Rupprecht in pr4015 --- sys/dev/usb/ums.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3