From owner-man-jp-reviewer@jp.freebsd.org  Mon Jul 19 16:09:28 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA24649;
	Mon, 19 Jul 1999 16:09:28 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id QAA24644
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 19 Jul 1999 16:09:26 +0900 (JST)
	(envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp)
Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:voleE2BNCzqmALuPpnJ1OGWrUDwwdgCH@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1])
	by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id QAA30404
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 19 Jul 1999 16:09:25 +0900 (JST)
Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP
	id QAA06799; Mon, 19 Jul 1999 16:13:40 +0900 (JST)
Message-Id: <199907190713.QAA06799@zodiac.mech.utsunomiya-u.ac.jp>
To: Norihiro Kumagai <kuma@nk.rim.or.jp>
cc: man-jp-reviewer@jp.freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
In-reply-to: Your message of "Sun, 18 Jul 1999 22:29:09 JST."
             <199907181329.WAA00471@sho.slab.tnr.sharp.co.jp> 
References: <199907181329.WAA00471@sho.slab.tnr.sharp.co.jp> 
Date: Mon, 19 Jul 1999 16:13:39 +0900
From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990625
X-Sequence: man-jp-reviewer 1440
Subject: [man-jp-reviewer 1440] Re: sysmouse.4 
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: yokota@zodiac.mech.utsunomiya-u.ac.jp

$@2#ED!w1'ET5\$G$9!#(J

>$@%b%P%$%k9)""7]MQ%^%7%s$N(J 500MB $@%Q!<%F%#%7%g%s$r(J 3.2-RELEASE + PAO3 $@$K(J
>$@>e$2!"(JUSB $@%^%&%9$r;H$($k$h$&$K$7$?$N$r5!$K(J sysmouse.4 $@$rLu$7$F$_$^$7$?!#(J

$@$46lO+MM$G$9!#(J

>$@>!<j$J$,$i(JBSD$@%^%&%9%^%s$?$k2#ED$5$s$K$bEj$2$5$;$F$$$?$@$-$^$7$?!#:9$7(J
>$@;Y$($J$1$l$P!"$49bMw$N>eIT<j:]$465<(D:$1$l$P9,$$$G$9!#(J
>
>$@FC$K(J MouseSystems $@I=8=$N(J byte 3 $@$H(J byte 5 $@$rB-$7$F?eJ?0\F0$r;;=P$9$k$H(J
>$@8@$&JU$j$,%$%a!<%8DO$a$F$^$;$s!#(J

$@C1$K%+%&%s%H?t$r(J2$@$G3d$C$F!$(J3, 5 $@%P%$%HL\$KJ,$1$FF~$l$F$$$k$@$1$G$9!#(J

$@0J2<8+$K$/$$$+$bCN$l$^$;$s$,!$5$IU$$$?E@$K$D$$$F!#$I$l$b;z6g>e$NJQ99$G(J
$@$9!#FbMFE*$JD{@5$O$"$j$^$;$s!#8@MU;H$$$K$D$$$F$O!$0ULu$r$I$NDxEY5vMF$9(J
$@$k$+$NH=CG$O$*$^$+$;$7$^$9!#(J

[...]
>+.Ss $@5!G=%l%Y%k(J
> .Nm
>-driver has two levels of operation. 
>-The current operation level can be referred to and changed via ioctl calls.
>+$@%I%i%$%P$K$O(J 2 $@$D$N5!G=%l%Y%k$,$"$j$^$9!#$=$N;~E@$N5!G=%l%Y%k$O(J ioctl
                                           ~~~~~~~~ 
                                           $@8=:_(J

>+$@%7%9%F%`%3!<%k$K$h$j;2>H!"JQ99$9$k$3$H$,$G$-$^$9!#(J
[...]

>+$@>o$K(J 0 $@$G$9!#(J
> .It bit 2
>-Left button status; cleared if pressed, otherwise set.
>+$@:8%\%?%s$N>uBV$G$9!#2!$72<$2$i$l$F$$$k>uBV$G%S%C%H%/%j%"!"$=$NB>$N>uBV$G(J
                                                            ~~~~~~~~~~~~
                                                            $@$=$&$G$J$1$l$P(J
>+$@%S%C%H%;%C%H$G$9!#(J
> .It bit 1
>-Middle button status; cleared if pressed, otherwise set. Always one,
>-if the device does not have the middle button.
>+$@Cf%\%?%s$N>uBV$G$9!#2!$72<$2$i$l$F$$$k>uBV$G%S%C%H%/%j%"!"$=$NB>$N>uBV$G(J
                                                            ~~~~~~~~~~~~
                                                            $@$=$&$G$J$1$l$P(J
>+$@%S%C%H%;%C%H!#Cf%\%?%s$r;}$?$J$$5!4o$N>l9g$O>o$K(J 1 $@$G$9!#(J
> .It bit 0
>-Right button status; cleared if pressed, otherwise set.
>+$@1&%\%?%s$N>uBV$G$9!#2!$72<$2$i$l$F$$$k>uBV$G%S%C%H%/%j%"!"$=$NB>$N>uBV$G(J
                                                            ~~~~~~~~~~~~
                                                            $@$=$&$G$J$1$l$P(J
>+$@%S%C%H%;%C%H$G$9!#(J
> .El
> .It Byte 2
>-The first half of horizontal movement count in two's compliment; 
>--128 through 127.
>+$@?eJ?$NF0$-$N%+%&%s%H$r(J 2 $@$NJd?t7A<0$GI=$7$?CM$N@hF,H>J,$G$9!#(J
                                                 ~~~~~~~
                                                 $@$&$A$NH>J,(J
>+-128 $@$+$i(J 127 $@$^$G$NCM!#(J
> .It Byte 3
>-The first half of vertical movement count in two's compliment; 
>--128 through 127.
>+$@?bD>$NF0$-$N%+%&%s%H$r(J 2 $@$NJd?t7A<0$GI=$7$?CM$N@hF,H>J,$G$9!#(J
                                                 ~~~~~~~
                                                 $@$&$A$NH>J,(J
>+-128 $@$+$i(J 127 $@$^$G$NCM!#(J
> .It Byte 4
>-The second half of the horizontal movement count in two's compliment; 
>--128 through 127. To obtain the full horizontal movement count, add
>-the byte 2 and 4.
>+$@?eJ?$NF0$-$N%+%&%s%H$r(J 2 $@$NJd?t7A<0$GI=$7$?CM$N8e$mH>J,$G$9!#(J
                                                 ~~~~~~~
                                                 $@$&$A$NH>J,(J

>+-128 $@$+$i(J 127 $@$^$G$NCM!#?eJ?$NF0$-$N%+%&%s%H$r$^$k$4$HF@$k$K$O!"(J
                                                ~~~~~~~~ -> $@:o=|(J
>+byte 2 $@$H(J byte 4 $@$rB-$7$F2<$5$$!#(J
> .It Byte 5
>-The second half of the vertical movement count in two's compliment; 
>--128 through 127. To obtain the full vertical movement count, add
>-the byte 3 and 5.
>+$@?bD>$NF0$-$N%+%&%s%H$r(J 2 $@$NJd?t7A<0$GI=$7$?CM$N8e$mH>J,$G$9!#(J
                                                 ~~~~~~~
                                                 $@$&$A$NH>J,(J

>+-128 $@$+$i(J 127 $@$^$G$NCM!#?bD>$NF0$-$N%+%&%s%H$r$^$k$4$HF@$k$K$O!"(J
                                                ~~~~~~~~ -> $@:o=|(J

>+byte 3 $@$H(J byte 5 $@$rB-$7$F2<$5$$!#(J
>+.\"kuma ... $@$I$&$$$&0UL#$+!)(J
> .El
[...]

> .Sh IOCTLS
>-This section describes two classes of 
>+$@$3$N@a$G$O!"(J
  ~~~~~~~~~~~
  $@$3$N@a$G$O(J2$@<oN`$N(J

> .Xr ioctl 2
>-commands: 
>-commands for the
>+$@%3%^%s%I$N(J 2 $@$D$N%/%i%9$r@bL@$7$^$9!#(J
  ~~~~~~~~~~~~~~~~~~~~~~~~~
  $@%3%^%s%I$K$D$$$F(J

>+$@0l$D$O!"(J
> .Nm
>-driver itself, and commands for the console and the console control drivers.
>+$@%I%i%$%P$=$l<+BN$KBP$9$k%3%^%s%I$G!"$b$&0l$D$O!"%3%s%=!<%k$H(J
>+$@%3%s%=!<%k@)8f%I%i%$%P$KBP$9$k%3%^%s%I$G$9!#(J
> .Ss Sysmouse Ioctls
>-There are a few commands for mouse drivers.
>-General description of the commands is given in
>-.Xr mouse 4 .
>-Followings are the features specific to the
[...]

> .Pp
>-The
> .Dv packetsize
>-field specifies the length of the data packet. It depends on the
>-operation level.
>+$@%U%#!<%k%I$O!"%G!<%?%Q%1%C%H$ND9$5$rI=$7$^$9!#$3$l$O5!G=%l%Y%k$K(J
>+$@0MB8$7$^$9!#(J
  ~~~~~~~~~~
  $@$h$C$FJQ$o$j$^$9!#(J

> .Pp
> .Bl -tag -width level_0__ -compact
>-.It Em level 0
>-5 bytes
>-.It Em level 1
>-8 bytes
>+.It Em $@%l%Y%k(J 0
>+5 $@%P%$%H(J
>+.It Em $@%l%Y%k(J 1
>+8 $@%P%$%H(J
> .El
[...]

>+.Dv syncmask[1]
>+$@$HEy$7$$>l9g!"$=$N%P%$%H$O%G!<%?%Q%1%C%H$N@hF,%P%$%H$i$7$$$H8@$($^$9!#(J
>+$@$3$NJ}K!$G@hF,%P%$%H$r8!=P$9$k$3$H$O(J 100% $@3N<B$H$O8@$($^$;$s!#(J
                                ~~~~~
                                $@$d$j$+$?$O(J

>+$@$h$C$F!"$3$l$O;29M07$$$K$9$k$Y$-$HCm0U$r$7$F$*$-$^$9!#(J
[...]

> .Pp
> .Dv x ,
>-.Dv y 
>-and
>+.Dv y ,
> .Dv z
>-represent movement of the mouse along respective directions.
>+$@$O!"$=$l$>$l$NJ}8~$KBP$9$k%^%&%9$N0\F0$rI=$7$^$9!#(J
> .Dv buttons
>-tells the state of buttons. It encodes up to 31 buttons in the bit 0 though
>-the bit 30.  If a button is held down, the corresponding bit is set. 
>+$@$O%\%?%s$N>uBV$r<($7$^$9!#%S%C%H(J 0 $@$+$i%S%C%H(J 30 $@$^$G$G:GBg(J 31 $@8D$N(J
>+$@%\%?%s$r%3!<%I2=$G$-$^$9!#%\%?%s$,2!$5$l$F$$$k$H!"BP1~$9$k%S%C%H$,(J
        ~~~~~~~~~~~~~~~~~~
        $@$N>uBV$rI=$9$3$H$,$G$-$^$9!#(J

>+$@%;%C%H$5$l$^$9!#(J




