summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1997-12-15 02:57:45 +0000
committeryokota <yokota@FreeBSD.org>1997-12-15 02:57:45 +0000
commitb7cdca40ba7917454003700ecf7d97d1c402ac47 (patch)
tree1ac8df4636941c40b1799460e71239f02c55ec0c
parent22a447567942a92b80083492f9b44f26e8beb052 (diff)
downloadFreeBSD-src-b7cdca40ba7917454003700ecf7d97d1c402ac47.zip
FreeBSD-src-b7cdca40ba7917454003700ecf7d97d1c402ac47.tar.gz
Oops, I forgot to set `cflag' in some cases when initializing the
mouse port.
-rw-r--r--usr.sbin/moused/moused.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c
index 6bd781f..1e82159 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.10 1997/09/25 06:44:39 charnier Exp $";
+ "$Id: moused.c,v 1.11 1997/12/07 08:11:16 yokota Exp $";
#endif /* not lint */
#include <err.h>
@@ -314,7 +314,7 @@ static unsigned short rodentcflags[] =
(CS7 | CREAD | CLOCAL | HUPCL ), /* GlidePoint */
(CS7 | CREAD | CLOCAL | HUPCL ), /* IntelliMouse */
(CS7 | CREAD | CLOCAL | HUPCL ), /* Thinking Mouse */
- 0, /* sysmouse */
+ (CS8 | CSTOPB | CREAD | CLOCAL | HUPCL ), /* sysmouse */
#if notyet
(CS8 | CSTOPB | CREAD | CLOCAL | HUPCL ), /* Mariqua */
#endif
@@ -1090,10 +1090,14 @@ r_init(void)
}
break;
+ case MOUSE_PROTO_SYSMOUSE:
+ if (rodent.hw.iftype == MOUSE_IF_SYSMOUSE)
+ setmousespeed(1200, rodent.baudrate, rodentcflags[rodent.rtype]);
+ /* fall through */
+
case MOUSE_PROTO_BUS:
case MOUSE_PROTO_INPORT:
case MOUSE_PROTO_PS2:
- case MOUSE_PROTO_SYSMOUSE:
if (rodent.rate >= 0)
rodent.mode.rate = rodent.rate;
if (rodent.resolution != MOUSE_RES_UNKNOWN)
OpenPOWER on IntegriCloud