Support more than 7 buttons for USB mice. Patch from kern/30248
This commit is contained in:
parent
1ea04d9351
commit
7027a58033
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */
|
||||
/* $NetBSD: ums.c,v 1.61 2005/08/13 14:55:39 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ums.c,v 1.61 2005/08/13 14:55:39 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -88,7 +88,7 @@ int umsdebug = 0;
|
|||
#define PS2MBUTMASK x04
|
||||
#define PS2BUTMASK 0x0f
|
||||
|
||||
#define MAX_BUTTONS 7 /* must not exceed size of sc_buttons */
|
||||
#define MAX_BUTTONS 31 /* must not exceed size of sc_buttons */
|
||||
|
||||
struct ums_softc {
|
||||
struct uhidev sc_hdev;
|
||||
|
|
Loading…
Reference in New Issue