From owner-man-jp-reviewer@jp.freebsd.org  Fri Jun  4 07:08:25 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id HAA00721;
	Fri, 4 Jun 1999 07:08:25 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from hiloshi.seikyou.ne.jp (kyoto-125.seikyou.ne.jp [202.211.150.125])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id HAA00716
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 4 Jun 1999 07:08:20 +0900 (JST)
	(envelope-from hiloshi@hiloshi.seikyou.ne.jp)
Received: (from hiloshi@localhost)
	by hiloshi.seikyou.ne.jp (8.9.2/8.9.2) id HAA00685;
	Fri, 4 Jun 1999 07:06:46 +0900 (JST)
	(envelope-from hiloshi)
Date: Fri, 4 Jun 1999 07:06:46 +0900 (JST)
Message-Id: <199906032206.HAA00685@hiloshi.seikyou.ne.jp>
From: =?ISO-2022-JP?B?GyRCNmIkc0VEGyhC?= <vanitas@ma3.seikyou.ne.jp>
To: man-jp-reviewer@jp.freebsd.org
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="Multipart_Fri_Jun__4_07:06:38_1999-1"
Content-Transfer-Encoding: 7bit
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990526
X-Sequence: man-jp-reviewer 1399
Subject: [man-jp-reviewer 1399] mouse.4
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: vanitas@ma3.seikyou.ne.jp

--Multipart_Fri_Jun__4_07:06:38_1999-1
Content-Type: text/plain; charset=ISO-2022-JP


$B$4$V$5$?$7$F$*$j$^$9!"6b$sED$G$9!#(B

$B$:$C$HM=Ls$7$?$^$^$@$C$?(B mouse.4 $B$N=iLu$G$9!#(B
## $B:n<T$N2#ED$5$s$K$b(B Cc: $B$7$F$*$j$^$9!#(B

$BD94|4V$[$C$?$i$+$7$K$7$F$$$F?=$7Lu$"$j$^$;$s!#(B
$B0lC6CY$l$k$H!"$D$$8e<j$K2s$7$F$7$^$C$F!D!#(B _(_ _)_;;;

i4b.4 $B$H(B pty.4 $B$O@h$[$IDs=P$$$?$7$^$7$?!#(B
natm.4 $B$H(B termios.4 $B$N$[$&$O(B 1, 2 $B=54V$N$&$A$K(B
$B$*Aw$j$9$k$h$&$KCW$7$^$9!#(B m(__;)m


$B!|(B $B5$$K$J$C$?E@(B
$B!&?o=j(B:
   in two's compliment$B!V(B2 $B$NJd?tI=8=!W(B
   $B$O!"(Bcomplement $B$N(B typo $B$G$O$H;W$$$^$9!#(B
$B!&(B154 ($B86J8(B 143) $B9TL\(B:
   Returns the hardware information of
   the attached device in the following
   $B9TKv$,C&;z$N$h$&$G$9!#(B $B!V(Bstructure.$B!W$0$i$$$G$7$g$&$+!#(B
   $BK\Lu$G$O!V<!$N9=B$BN$K!W$H$7$F$*$-$^$7$?!#(B
$B!&(B342 ($B86J8(B 339) $B9TL\(B:
   Few button bits are defined as
   MOUSE_BUTTON1DOWN through MOUSE_BUTTON8DOWN.
   $B0UL#$O!V$$$/$D$+$,!D$5$l$F$$$k!W$@$H;W$&$N$G$9$,!"(B
   Few $B$@$H$R$g$C$H$7$F!V$[$H$s$I!D$5$l$F$$$J$$!W(B
   $B$H$$$&0UL#$K$J$C$F$7$^$&$N$G$O$J$$$G$7$g$&$+!)(B
   $B"*(B A few $B$H$9$k$N$,E,Ev$J5$$,$9$k$N$G$9$,!"$$$+$,$G$7$g$&$+!#(B

$B2#ED$5$s$O(B commiter $B$5$s$J$N$G$9$M!#(B
$B$3$l$i(B send-pr $B$7$?$[$&$,NI$$$G$7$g$&$+!"(B
$B$"$k$$$OD>@\=$@5$r$*4j$$$7$F$b$h$m$7$$$G$7$g$&$+!)(B
___________________________________________
$B6bED(B $B9@;J(B  email: vanitas@ma3.seikyou.ne.jp


--Multipart_Fri_Jun__4_07:06:38_1999-1
Content-Type: text/plain; charset=ISO-2022-JP
Content-Disposition: attachment; filename="mouse.4"
Content-Transfer-Encoding: 7bit

.\"
.\" Copyright (c) 1997
.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer as
.\"    the first lines of this file unmodified.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $Id: mouse.4,v 1.2 1998/03/12 07:30:35 charnier Exp $
.\" jpman %Id: mouse.4,v 0.0 1999/02/22 16:13:46 horikawa Stab %
.\" WORD: track ball	$B%H%i%C%/%\!<%k(B
.\" "
.Dd December 3, 1997
.Dt MOUSE 4 i386
.Os Fre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$O%3%^%s%I$N0lHLE*$J2r@b$r5-$7$^$9!#(B
$BFCDj$N>\:Y$K$D$$$F$O8D!9$N%I%i%$%P$N%^%K%e%"%k%Z!<%8$r;2>H$7$F$/$@$5$$!#(B
.Pp
.Bl -tag -width MOUSE -compact
.It Dv MOUSE_GETLEVEL Ar int *level
.It Dv MOUSE_SETLEVEL Ar int *level
$B$3$l$i$N%3%^%s%I$O%^%&%9%I%i%$%P$NA`:n%l%Y%k$r07$$$^$9!#(B
.Pp
.It Dv MOUSE_GETHWINFO Ar mousehw_t *hw
$B@\B3$5$l$F$$$k%G%P%$%9$N%O!<%I%&%'%">pJs$r<!$N9=B$BN$KJV$7$^$9!#(B
.Dv iftype
$B%U%#!<%k%I0J30$O!"(B
$BI,$:$7$b%G%P%$%9%I%i%$%P$,@5$7$$CM$G9=B$BN$rKd$a$k$H$O8B$j$^$;$s!#(B
$B%5%]!<%H$N>\:Y$O8D!9$N%I%i%$%P$N%^%K%e%"%k%Z!<%8$r;2>H$7$F$/$@$5$$!#(B
.Bd -literal
typedef struct mousehw {
    int buttons;    /* $B%\%?%s?t(B */
    int iftype;     /* I/F $B%?%$%W(B */
    int type;       /* $B%^%&%9(B/$B%H%i%C%/%\!<%k(B/$B%Q%G%#%s%0(B... */
    int model;      /* I/F $B0MB8$N%b%G%k(B ID */
    int hwid;       /* I/F $B0MB8$N%O!<%I%&%'%"(B ID */
} mousehw_t;
.Ed
.Pp
.Dv buttons
$B%U%#!<%k%I$O%I%i%$%P$,8!=P$7$?%\%?%s?t$rJ];}$7$^$9!#(B
$B%I%i%$%P$,@53N$J?t$r8!=P$G$-$J$1$l$P!"(B
2 $B$J$I$NE,Ev$JCM$,$3$N%U%#!<%k%I$KBeF~$5$l$k$3$H$b$"$j$^$9!#(B
.Pp
.Dv iftype
$B$O%$%s%?%U%'!<%9$N7?$G!"(B
.Dv MOUSE_IF_SERIAL ,
.Dv MOUSE_IF_BUS ,
.Dv MOUSE_IF_INPORT ,
.Dv MOUSE_IF_PS2 ,
.Dv MOUSE_IF_SYSMOUSE ,
.Dv MOUSE_IF_UNKNOWN
$B$N$$$:$l$+$G$9!#(B
.Pp
.Dv type
$B$O%G%P%$%9$N7?$r<($7!"(B
.Dv MOUSE_MOUSE ,
.Dv MOUSE_TRACKBALL ,
.Dv MOUSE_STICK ,
.Dv MOUSE_PAD ,
.Dv MOUSE_UNKNOWN
$B$N$$$:$l$+$G$9!#(B
.Pp
.Dv model
$B$O(B
.Dv MOUSE_MODEL_GENERIC
$B$+!"$"$k$$$ODj?t(B
.Dv MOUSE_MODEL_XXX
$B$N$&$A$N$R$H$D$G$9!#(B
.Pp
.Dv hwid
$B$O$=$N%]%$%s%F%#%s%0%G%P%$%9$,JV$9(B ID $BCM$G$9!#(B
$B$3$l$O%$%s%?%U%'!<%9$N7?$K0M$j$^$9!#(B
$B<h$j$&$kCM$K$D$$$F$OFCDj$N%^%&%9%I%i%$%P$N%^%K%e%"%k%Z!<%8$r;2>H$7$F$/$@$5$$!#(B
.Pp
.It Dv MOUSE_GETMODE Ar mousemode_t *mode
$BK\%3%^%s%I$O%^%&%9%I%i%$%P$N8=:_$NA`:n%Q%i%a!<%?$rJs9p$7$^$9!#(B
.Bd -literal
typedef struct mousemode {
    int protocol;    /* MOUSE_PROTO_XXX */
    int rate;        /* $BJs9pIQEY(B ($BICC10L(B) */
    int resolution;  /* MOUSE_RES_XXX$B!"ITL@$J$i(B -1 */
    int accelfactor; /* $B%"%/%;%i%l!<%7%g%s$NMWAG(B */
    int level;       /* $B%I%i%$%P$NA`:n%l%Y%k(B */
    int packetsize;  /* $B%G!<%?%Q%1%C%H$ND9$5(B */
    unsigned char syncmask[2]; /* $BF14|%S%C%H(B */
} mousemode_t;
.Ed
.Pp
.Dv protocol
$B%U%#!<%k%I$O!"%f!<%6%W%m%0%i%`$,%^%&%9%G!<%?$rFI$_<h$k:]$K!"(B
$B%G%P%$%9$N>uBV$,JV$5$l$k7A<0$r<($7$^$9!#(B
$B$3$l$ODj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7$1$l$P!"$*$=$i$/$=$N%P%$%H$O%G!<%?%Q%1%C%H$N(B 1 $B%P%$%HL\$G$7$g$&!#(B
$BC"$7$3$N(B 1 $B%P%$%HL\$N8!=PK!$O(B 100% $B?.Mj@-$,$"$k$H$O8@$($^$;$s!#(B
$BC1$KJd=uE*$J<jCJ$@$H$H$i$($F$/$@$5$$!#(B
.Pp
.It Dv MOUSE_SETMODE Ar mousemode_t *mode
$BK\%3%^%s%I$O!"%^%&%9%I%i%$%P$N8=:_$NA`:n%Q%i%a!<%?$r(B
.Ar mode
$B$G;XDj$5$l$kDL$j$KJQ99$7$^$9!#(B
$BJQ992DG=$J$N$O!"(B
.Dv rate ,
.Dv resolution ,
.Dv level ,
.Dv accelfactor
$B$@$1$G$9!#(B
$BB>$N%U%#!<%k%I$KCM$rBeF~$7$F$b!"%(%i!<$OH/@8$7$^$;$s$7!"8z2L$b$"$j$^$;$s!#(B
.Pp
$B$"$k%U%#!<%k%I$N8=:_$N@_Dj$rJQ99$7$?$/$J$$$H$-$O!"(B
$B$=$N%U%#!<%k%I$K(B -1 $B$rF~$l$F$/$@$5$$!#(B
$B$^$?(B
.Dv resolution
$B$H(B
.Dv rate
$B$K$O(B 0 $B$rF~$l$k$3$H$b$G$-$^$9!#(B
$B$=$&$9$k$H!"$=$N%U%#!<%k%I$N%G%U%)%k%HCM$,A*Br$5$l$^$9!#(B
.\" .Pp
.\" .It Dv MOUSE_GETVARS Ar mousevar_t *vars
.\" Get internal variables of the mouse driver. 
.\" The variables which can be manipulated through these commands
.\" are specific to each driver. 
.\" This command may not be supported by all drivers.
.\" .Bd -literal
.\" typedef struct mousevar {
.\"     int var[16];    /* internal variables */
.\" } mousevar_t;
.\" .Ed
.\" .Pp
.\" If the commands are supported, the first element of the array is
.\" filled with a signature value. 
.\" Apart from the signature data, there is currently no standard concerning 
.\" the other elements of the buffer.
.\" .Pp
.\" .It Dv MOUSE_SETVARS Ar mousevar_t *vars
.\" Get internal variables of the mouse driver. 
.\" The first element of the array must be a signature value.
.\" This command may not be supported by all drivers.
.Pp
.It Dv MOUSE_READDATA Ar mousedata_t *data
$BK\%3%^%s%I$O%G%P%$%9$+$i@8$N%G!<%?$rFI$_<h$j$^$9!#(B
.Bd -literal
typedef struct mousedata {
    int len;        /* $B%P%C%U%!Fb$N%G!<%??t(B */
    int buf[16];    /* $B%G!<%?MQ%P%C%U%!(B */
} mousedata_t;
.Ed
.Pp
$B8F$S=P$785%W%m%;%9$O!"(B
$B%P%C%U%!$KFI$_9~$^$l$k%P%$%H?t$r(B
.Dv len
$B%U%#!<%k%I$KF~$l$F$*$/I,MW$,$"$j$^$9!#(B
$BK\%3%^%s%I$O$9$Y$F$N%I%i%$%P$,%5%]!<%H$7$F$$$k$H$O8B$j$^$;$s!#(B
.Pp
.It Dv MOUSE_READSTATE Ar mousedata_t *state
$BK\%3%^%s%I$O%G%P%$%9$+$i@8$N>uBV%G!<%?$rFI$_<h$j$^$9!#(B
$B>e5-$HF1$89=B$BN$r;HMQ$7$^$9!#(B
$BK\%3%^%s%I$O$9$Y$F$N%I%i%$%P$,%5%]!<%H$7$F$$$k$H$O8B$j$^$;$s!#(B
.Pp
.It Dv MOUSE_GETSTATE Ar mousestatus_t *status
$BK\%3%^%s%I$O!"8=:_$N%\%?%s>uBV$H0\F0%+%&%s%H$r<!$N9=B$BN$KJV$7$^$9!#(B
.Bd -literal
typedef struct mousestatus {
    int flags;      /* $B>uBVJQ99%U%i%0(B */
    int button;     /* $B%\%?%s>uBV(B */
    int obutton;    /* $B0JA0$N%\%?%s>uBV(B */
    int dx;         /* x $B0\F0(B */
    int dy;         /* y $B0\F0(B */
    int dz;         /* z $B0\F0(B */
} mousestatus_t;
.Ed
.Pp
.Dv button
$B%U%#!<%k%I$H(B
.Dv obutton
$B%U%#!<%k%I$O!"%^%&%9%\%?%s$N8=:_$N>uBV$H0JA0$N>uBV$rJ];}$7$^$9!#(B
$B%\%?%s$,2!$5$l$?$H$-!"BP1~$9$k%S%C%H$,%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Sh HISTORY
.Sh $B:n<T(B
$BK\%^%K%e%"%k%Z!<%8$O(B
.An Kazutaka Yokota Aq yokota@FreeBSD.org
$B$,=q$-$^$7$?!#(B

--Multipart_Fri_Jun__4_07:06:38_1999-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="mouse.4.diff"
Content-Transfer-Encoding: 7bit

--- mouse.4.orig	Fri Jun  4 06:33:34 1999
+++ mouse.4	Fri Jun  4 06:34:40 1999
@@ -89,25 +89,25 @@
 Right button status; cleared if pressed, otherwise set.
 .El
 .It Byte 2
-The first half of horizontal movement count in two's compliment; 
+The first half of horizontal movement count in two's complement; 
 -128 through 127.
 .It Byte 3
-The first half of vertical movement count in two's compliment; 
+The first half of vertical movement count in two's complement; 
 -128 through 127.
 .It Byte 4
-The second half of the horizontal movement count in two's compliment; 
+The second half of the horizontal movement count in two's complement; 
 -128 through 127. To obtain the full horizontal movement count, add
 the byte 2 and 4.
 .It Byte 5
-The second half of the vertical movement count in two's compliment; 
+The second half of the vertical movement count in two's complement; 
 -128 through 127. To obtain the full vertical movement count, add
 the byte 3 and 5.
 .It Byte 6
 The bit 7 is always zero. The lower 7 bits encode the first half of 
-Z axis movement count in two's compliment; -64 through 63.
+Z axis movement count in two's complement; -64 through 63.
 .It Byte 7
 The bit 7 is always zero. The lower 7 bits encode the second half of 
-the Z axis movement count in two's compliment; -64 through 63.
+the Z axis movement count in two's complement; -64 through 63.
 To obtain the full Z axis movement count, add the byte 6 and 7.
 .It Byte 8
 The bit 7 is always zero. The bits 0 through 6 reflect the state
@@ -140,7 +140,8 @@
 These commands manipulate the operation level of the mouse driver.
 .Pp
 .It Dv MOUSE_GETHWINFO Ar mousehw_t *hw
-Returns the hardware information of the attached device in the following 
+Returns the hardware information of the attached device
+in the following structure.
 Except for the
 .Dv iftype
 field, the device driver may not always fill the structure with correct
@@ -337,7 +338,7 @@
 fields hold the current and the previous state of the mouse buttons.
 When a button is pressed, the corresponding bit is set.
 The mouse drivers may support up to 31 buttons with the bit 0 through 31.
-Few button bits are defined as 
+A few button bits are defined as 
 .Dv MOUSE_BUTTON1DOWN
 through 
 .Dv MOUSE_BUTTON8DOWN .

--Multipart_Fri_Jun__4_07:06:38_1999-1--
