summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/moused/moused.822
-rw-r--r--usr.sbin/moused/moused.c14
2 files changed, 30 insertions, 6 deletions
diff --git a/usr.sbin/moused/moused.8 b/usr.sbin/moused/moused.8
index ebc5e50..50ba37c 100644
--- a/usr.sbin/moused/moused.8
+++ b/usr.sbin/moused/moused.8
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: moused.8,v 1.7 1997/12/07 08:11:15 yokota Exp $
+.\" $Id: moused.8,v 1.8 1997/12/08 11:54:42 yokota Exp $
.\"
.Dd December 3, 1997
.Dt MOUSED 8
@@ -198,12 +198,26 @@ Select a baudrate of 9600 for the serial line.
Not all serial mice support this option.
.It Fl t Ar type
Specify the protocol type of the mouse attached to the port.
-You need to use this option only if the
+You may explicitly specify a type listed below, or use
+.Ar auto
+to let the
.Nm
-command is not able to detect the appropriate protocol automatically for
-the given mouse
+command to automatically select an appropriate protocol for the given
+mouse.
+If you entirely ommit this options in the command line,
+.Fl t Ar auto
+is assumed.
+Under normal circumstances,
+you need to use this option only if the
+.Nm
+command is not able to detect the protocol automatically
.Pq see the Sx Configuring Mouse Daemon .
.Pp
+Also note that if a protocol type is specified with this option, the
+.Fl P
+option above is implied and Plug and Play COM device enumeration
+procedure will be disabled.
+.Pp
Valid types for this option are
listed below.
.Pp
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c
index 1e82159..830cb55 100644
--- a/usr.sbin/moused/moused.c
+++ b/usr.sbin/moused/moused.c
@@ -46,7 +46,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: moused.c,v 1.11 1997/12/07 08:11:16 yokota Exp $";
+ "$Id: moused.c,v 1.12 1997/12/15 02:57:45 yokota Exp $";
#endif /* not lint */
#include <err.h>
@@ -214,6 +214,8 @@ static symtab_t pnpprod[] = {
{ "KYEEZ00", MOUSE_PROTO_MS, MOUSE_MODEL_EASYSCROLL },
/* Genius NetMouse */
{ "KYE0003", MOUSE_PROTO_INTELLI, MOUSE_MODEL_NET },
+ /* Logitech MouseMan (new 4 button model) */
+ { "LGI800C", MOUSE_PROTO_INTELLI, MOUSE_MODEL_MOUSEMANPLUS },
/* Logitech MouseMan+ */
{ "LGI8050", MOUSE_PROTO_INTELLI, MOUSE_MODEL_MOUSEMANPLUS },
/* Logitech FirstMouse+ */
@@ -524,9 +526,17 @@ main(int argc, char *argv[])
break;
case 't':
+ if (strcmp(optarg, "auto") == 0) {
+ rodent.rtype = MOUSE_PROTO_UNKNOWN;
+ rodent.flags &= ~NoPnP;
+ rodent.level = -1;
+ break;
+ }
for (i = 0; rnames[i]; i++)
- if (!strcmp(optarg,rnames[i])) {
+ if (strcmp(optarg, rnames[i]) == 0) {
rodent.rtype = i;
+ rodent.flags |= NoPnP;
+ rodent.level = (i == MOUSE_PROTO_SYSMOUSE) ? 1 : 0;
break;
}
if (rnames[i])
OpenPOWER on IntegriCloud