From owner-man-jp-reviewer@jp.freebsd.org  Sun Jul 18 22:36:26 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id WAA52813;
	Sun, 18 Jul 1999 22:36:26 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from mail.nk.rim.or.jp (root@mail.nk.rim.or.jp [202.247.130.165])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id WAA52808
	for <man-jp-reviewer@jp.freebsd.org>; Sun, 18 Jul 1999 22:36:26 +0900 (JST)
	(envelope-from kuma@nk.rim.or.jp)
Received: from sho.slab.tnr.sharp.co.jp (kobe1-45.pias.ne.jp [210.136.248.247])
	by mail.nk.rim.or.jp (8.8.8/3.6W-RIMNET-98-06-09) with ESMTP id WAA20617;
	Sun, 18 Jul 1999 22:35:21 +0900 (JST)
Received: from sho.slab.tnr.sharp.co.jp (localhost.slab.tnr.sharp.co.jp [127.0.0.1])
	by sho.slab.tnr.sharp.co.jp (8.9.3/8.8.8laurel981201) with ESMTP id WAA00471;
	Sun, 18 Jul 1999 22:29:14 +0900 (JST)
	(envelope-from kuma@sho.slab.tnr.sharp.co.jp)
Message-Id: <199907181329.WAA00471@sho.slab.tnr.sharp.co.jp>
To: man-jp-reviewer@jp.freebsd.org
cc: yokota@FreeBSD.org
Date: Sun, 18 Jul 1999 22:29:09 +0900
From: Norihiro Kumagai <kuma@nk.rim.or.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 1437
Subject: [man-jp-reviewer 1437] sysmouse.4
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: kuma@nk.rim.or.jp

$B7'C+$G$9!#(B

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

$B>!<j$J$,$i(BBSD$B%^%&%9%^%s$?$k2#ED$5$s$K$bEj$2$5$;$F$$$?$@$-$^$7$?!#:9$7(B
$B;Y$($J$1$l$P!"$49bMw$N>eIT<j:]$465<(D:$1$l$P9,$$$G$9!#(B

$BFC$K(B MouseSystems $BI=8=$N(B byte 3 $B$H(B byte 5 $B$rB-$7$F?eJ?0\F0$r;;=P$9$k$H(B
$B8@$&JU$j$,%$%a!<%8DO$a$F$^$;$s!#(B

(MouseMan $B$rLu$9$H!V%M%:%_CK!W$+$!!A%$%a!<%8$,!D(B) $B7'C+(B $BE5Bg(B

--- sysmouse.4-org	Sun Jul 18 17:06:10 1999
+++ sysmouse.4	Sun Jul 18 22:03:18 1999
@@ -28,90 +28,91 @@
 .\"	$Id: sysmouse.4,v 1.7 1998/03/12 07:30:38 charnier Exp $
 .\" jpman %Id: sysmouse.4,v 0.0 1999/02/22 16:14:00 horikawa Stab %
 .\"
+.\" word: movement	($B%^%&%9$N(B)$BF0$-(B[sysmouse.4]
+.\"
 .Dd December 3, 1997
 .Dt SYSMOUSE 4 i386
 .Os FreeBSD
-.Sh NAME
+.Sh $BL>>N(B
 .Nm sysmouse
-.\" .Nd supplies mouse data from syscons for other applications
-.Nd virtualized mouse driver
-.Sh SYNOPSIS
+.Nd $B2>A[2=$5$l$?%^%&%9%I%i%$%P(B
+.Sh $B=q<0(B
 .Fd #include <machine/mouse.h>
 .Fd #include <machine/console.h>
-.Sh DESCRIPTION
-The console driver, in conjunction with the mouse daemon
-.Xr moused 8 ,
-supplies mouse data to the user process in the standardized way via the
+.Sh $B2r@b(B
+$B%^%&%9%G!<%b%s(B
+.Xr moused 8
+$B$H0l=o$K;H$&$3$H$K$h$j!"%3%s%=!<%k%I%i%$%P$O!"(B
 .Nm
-driver.
-This arrangement makes it possible for the console and the user process
-.Pq such as the Tn X\ Window System
-to share the mouse.
-.Pp
-The user process which wants to utilize mouse operation simply opens 
+$B%I%i%$%P$rDL$7$F!"%f!<%6%W%m%;%9$KI8=`E*$JJ}K!$G%^%&%9$N%G!<%?$rDs6!$7$^$9!#(B
+$B$3$N$h$&$K@0M}$9$k$3$H$G!"(B
+.Pq X\ $B%&%$%s%I%&%7%9%F%`$J$I$N$h$&$J(B
+$B%f!<%6%W%m%;%9$H%3%s%=!<%k$H$G%^%&%9$r6&M-$9$k$3$H$,$G$-$k$h$&$K$J$j$^$9!#(B
+.Pp
+$B%f!<%6%W%m%;%9$,%^%&%95!G=$rMxMQ$7$h$&$H$9$k>l9g!"C1$K(B
+.Xr open 3
+$B%7%9%F%`%3!<%k$G(B
 .Pa /dev/sysmouse
-with a
-.Xr open 2
-call and reads
-mouse data from the device via
-.Xr read 2 .
-Make sure that
+$B$r%*!<%W%s$7!"(B
+.Xr read 2
+$B%7%9%F%`%3!<%k$rMQ$$$F%^%&%9%G!<%?$rFI$_9~$`$@$1$G$h$$$G$9!#(B
+$B$3$3$G!"3N<B$K(B
 .Xr moused 8
-is running, otherwise the user process won't see any data coming from
-the mouse.
+$B$r<B9T$7$F$*$$$F2<$5$$!#$5$b$J$$$H!"%f!<%6%W%m%;%9$O%^%&%9$+$i%G!<%?$r(B
+$B0l@Z<u$1<h$k$3$H$,$G$-$J$$$G$7$g$&!#(B
 .Pp
-.Ss Operation Levels
-The
+.Ss $B5!G=%l%Y%k(B
 .Nm
-driver has two levels of operation. 
-The current operation level can be referred to and changed via ioctl calls.
+$B%I%i%$%P$K$O(B 2 $B$D$N5!G=%l%Y%k$,$"$j$^$9!#$=$N;~E@$N5!G=%l%Y%k$O(B ioctl
+$B%7%9%F%`%3!<%k$K$h$j;2>H!"JQ99$9$k$3$H$,$G$-$^$9!#(B
 .Pp
-The level zero, the basic level, is the lowest level at which the driver 
-offers the basic service to user programs. 
-The
+$B%l%Y%k(B 0 $B$O:G$bDc$$%l%Y%k$G!"4pK\E*$J%l%Y%k$G$b$"$j$^$9!#$3$N%l%Y%k$G$O!"(B
+$B%I%i%$%P$O!"%f!<%6%W%m%0%i%`$KBP$7$F4pK\E*$J%5!<%S%9$rDs6!$7$^$9!#(B
 .Nm
-driver
-provides horizontal and vertical movement of the mouse
-and state of up to three buttons in the 
+$B%I%i%$%P$O!"%^%&%9$N?eJ??bD>$NF0$-$H!":GBg$G(B 3 $B8D$^$G$N%\%?%s$N>uBV$r!"(B
+$B0J2<$K<($9(B
 .Tn MouseSystems 
-format as follows.
+$B7A<0$GDLCN$7$^$9!#(B
 .Pp
 .Bl -tag -width Byte_1 -compact
 .It Byte 1 
 .Bl -tag -width bit_7 -compact
 .It bit 7
-Always one.
+$B>o$K(B 1 $B$G$9!#(B
 .It bit 6..3
-Always zero.
+$B>o$K(B 0 $B$G$9!#(B
 .It bit 2
-Left button status; cleared if pressed, otherwise set.
+$B:8%\%?%s$N>uBV$G$9!#2!$72<$2$i$l$F$$$k>uBV$G%S%C%H%/%j%"!"$=$NB>$N>uBV$G(B
+$B%S%C%H%;%C%H$G$9!#(B
 .It bit 1
-Middle button status; cleared if pressed, otherwise set. Always one,
-if the device does not have the middle button.
+$BCf%\%?%s$N>uBV$G$9!#2!$72<$2$i$l$F$$$k>uBV$G%S%C%H%/%j%"!"$=$NB>$N>uBV$G(B
+$B%S%C%H%;%C%H!#Cf%\%?%s$r;}$?$J$$5!4o$N>l9g$O>o$K(B 1 $B$G$9!#(B
 .It bit 0
-Right button status; cleared if pressed, otherwise set.
+$B1&%\%?%s$N>uBV$G$9!#2!$72<$2$i$l$F$$$k>uBV$G%S%C%H%/%j%"!"$=$NB>$N>uBV$G(B
+$B%S%C%H%;%C%H$G$9!#(B
 .El
 .It Byte 2
-The first half of horizontal movement count in two's compliment; 
--128 through 127.
+$B?eJ?$NF0$-$N%+%&%s%H$r(B 2 $B$NJd?t7A<0$GI=$7$?CM$N@hF,H>J,$G$9!#(B
+-128 $B$+$i(B 127 $B$^$G$NCM!#(B
 .It Byte 3
-The first half of vertical movement count in two's compliment; 
--128 through 127.
+$B?bD>$NF0$-$N%+%&%s%H$r(B 2 $B$NJd?t7A<0$GI=$7$?CM$N@hF,H>J,$G$9!#(B
+-128 $B$+$i(B 127 $B$^$G$NCM!#(B
 .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.
+$B?eJ?$NF0$-$N%+%&%s%H$r(B 2 $B$NJd?t7A<0$GI=$7$?CM$N8e$mH>J,$G$9!#(B
+-128 $B$+$i(B 127 $B$^$G$NCM!#?eJ?$NF0$-$N%+%&%s%H$r$^$k$4$HF@$k$K$O!"(B
+byte 2 $B$H(B byte 4 $B$rB-$7$F2<$5$$!#(B
 .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.
+$B?bD>$NF0$-$N%+%&%s%H$r(B 2 $B$NJd?t7A<0$GI=$7$?CM$N8e$mH>J,$G$9!#(B
+-128 $B$+$i(B 127 $B$^$G$NCM!#?bD>$NF0$-$N%+%&%s%H$r$^$k$4$HF@$k$K$O!"(B
+byte 3 $B$H(B byte 5 $B$rB-$7$F2<$5$$!#(B
+.\"kuma ... $B$I$&$$$&0UL#$+!)(B
 .El
 .Pp
-At the level one, the extended level, mouse data is encoded
-in the standard format
+$B%l%Y%k(B 1 $B$O3HD%%l%Y%k$G!"%^%&%9$N%G!<%?$O(B
+.Xr mouse 4
+$B$GDj5A$5$l$?I8=`7A<0(B
 .Dv MOUSE_PROTO_SYSMOUSE
-as defined in 
-.Xr mouse 4 .
+$B$G%3!<%I2=$5$l$^$9!#(B
 .\" .Ss Acceleration
 .\" The
 .\" .Nm
@@ -122,36 +123,36 @@
 .\" the acceleration. Its value can be modified via the driver flag 
 .\" or via an ioctl call.
 .Sh IOCTLS
-This section describes two classes of 
+$B$3$N@a$G$O!"(B
 .Xr ioctl 2
-commands: 
-commands for the
+$B%3%^%s%I$N(B 2 $B$D$N%/%i%9$r@bL@$7$^$9!#(B
+$B0l$D$O!"(B
 .Nm
-driver itself, and commands for the console and the console control drivers.
+$B%I%i%$%P$=$l<+BN$KBP$9$k%3%^%s%I$G!"$b$&0l$D$O!"%3%s%=!<%k$H(B
+$B%3%s%=!<%k@)8f%I%i%$%P$KBP$9$k%3%^%s%I$G$9!#(B
 .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
+$B%^%&%9%I%i%$%P$KBP$9$k%3%^%s%I$,$$$/$D$+$"$j$^$9!#$3$N%3%^%s%I0lHL$N@bL@$O!"(B
+.Xr mouse 4
+$B$K$"$j$^$9!#(B
+$B0J2<$G$O!"(B
 .Nm
-driver.
+$B%I%i%$%P8GM-$N5!G=$r@bL@$7$^$9!#(B
 .Pp
 .Bl -tag -width MOUSE -compact
 .It Dv MOUSE_GETLEVEL Ar int *level
 .It Dv MOUSE_SETLEVEL Ar int *level
-These commands manipulate the operation level of the mouse driver.
+$B$3$l$i$N%3%^%s%I$O!"%^%&%9%I%i%$%P$N5!G=%l%Y%k$rA`:n$7$^$9!#(B
 .Pp
 .It Dv MOUSE_GETHWINFO Ar mousehw_t *hw
-Returns the hardware information of the attached device in the following 
-structure.  Only the
-.Dv iftype
-field is guaranteed to be filled with the correct value in the current
-version of the
+$B0J2<$N9=B$BN$G!"@\B3$5$l$?5!4o$N%O!<%I%&%(%">pJs$rJV$7$^$9!#8=:_$N(B
+$B%P!<%8%g%s$N(B
 .Nm
-driver.
+$B%I%i%$%P$G$O!"(B
+.Dv iftype
+$B%U%#!<%k%I$@$1$,@5$7$$CM$,5M$^$C$F$$$k$3$H$,J]>Z$5$l$F$$$^$9!#(B
 .Bd -literal
 typedef struct mousehw {
-    int buttons;    /* number of buttons */
+    int buttons;    /* $B%\%?%s$N?t(B */
     int iftype;     /* I/F type */
     int type;       /* mouse/track ball/pad... */
     int model;      /* I/F dependent model ID */
@@ -159,108 +160,97 @@
 } mousehw_t;
 .Ed
 .Pp
-The
 .Dv buttons
-field holds the number of buttons detected by the driver.
+$B%U%#!<%k%I$K$O!"%I%i%$%P$,8!=P$7$?%\%?%s$N?t$,J];}$5$l$F$$$^$9!#(B
 .Pp
-The
 .Dv iftype
-is always
-.Dv MOUSE_IF_SYSMOUSE.
+$B$O>o$K(B
+.Dv MOUSE_IF_SYSMOUSE
+$B$G$9!#(B
 .Pp
-The
 .Dv type
-tells the device type:
+$B$O5!4o$N7?(B: 
 .Dv MOUSE_MOUSE ,
 .Dv MOUSE_TRACKBALL ,
 .Dv MOUSE_STICK ,
 .Dv MOUSE_PAD ,
-or
-.Dv MOUSE_UNKNOWN .
+.Dv MOUSE_UNKNOWN
+$B$rI=$7$^$9!#(B
 .Pp
-The
 .Dv model
-is always 
+$B$O!"5!G=%l%Y%k(B 0 $B$G$O>o$K(B
 .Dv MOUSE_MODEL_GENERIC
-at the operation level 0.
-It may be 
+$B$G$9!#(B
+$B$3$l$O!"$h$j9b$$%l%Y%k$G$O!"(B
 .Dv MOUSE_MODEL_GENERIC
-or one of 
+$B$^$?$O!"(B
 .Dv MOUSE_MODEL_XXX
-constants at higher operation levels.
+$B$N$&$A$N0l$D$K$J$j$^$9!#(B
 .Pp
-The
 .Dv hwid
-is always zero.
+$B$O>o$K(B 0 $B$G$9!#(B
 .Pp
 .It Dv MOUSE_GETMODE Ar mousemode_t *mode
-The command gets the current operation parameters of the mouse
-driver.
+$B$3$N%3%^%s%I$O!"%^%&%9%I%i%$%P$N8=:_$N5!G=%Q%i%a!<%?$rJV$7$^$9!#(B
 .Bd -literal
 typedef struct mousemode {
     int protocol;    /* MOUSE_PROTO_XXX */
-    int rate;        /* report rate (per sec) */
-    int resolution;  /* MOUSE_RES_XXX, -1 if unknown */
-    int accelfactor; /* acceleration factor */
-    int level;       /* driver operation level */
-    int packetsize;  /* the length of the data packet */
-    unsigned char syncmask[2]; /* sync. bits */
+    int rate;        /* $BDLCN%l!<%H(B ($BICC10L(B) */
+    int resolution;  /* MOUSE_RES_XXX, $BITL@$N>l9g$O(B -1 */
+    int accelfactor; /* $B2CB.N((B */
+    int level;       /* $B%I%i%$%P$N5!G=%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
-The
 .Dv protocol
-field tells the format in which the device status is returned 
-when the mouse data is read by the user program.
-It is
+$B%U%#!<%k%I$O!"%f!<%6%W%m%0%i%`$,%^%&%9%G!<%?$rFI$_$H$k;~$K!"(B
+$B$=$N5!4o$N>uBV$rJV$97A<0$rI=$7$^$9!#(B
+$B5!G=%l%Y%k(B 0 $B$G$O!"(B
 .Dv MOUSE_PROTO_MSC
-at the operation level zero.
+$B$G$"$j!"5!G=%l%Y%k(B 1 $B$G$O!"(B
 .Dv MOUSE_PROTO_SYSMOUSE
-at the operation level one.
+$B$G$9!#(B
 .Pp
-The
 .Dv rate
-is always set to -1.
+$B%U%#!<%k%I$O!">o$K(B -1 $B$G$9!#(B
 .Pp
-The
 .Dv resolution
-is always set to -1.
+$B%U%#!<%k%I$O!">o$K(B -1 $B$G$9!#(B
 .Pp
-The
 .Dv accelfactor
-is always 0.
+$B%U%#!<%k%I$O!">o$K(B 0 $B$G$9!#(B
 .Pp
-The
 .Dv packetsize
-field specifies the length of the data packet. It depends on the
-operation level.
+$B%U%#!<%k%I$O!"%G!<%?%Q%1%C%H$ND9$5$rI=$7$^$9!#$3$l$O5!G=%l%Y%k$K(B
+$B0MB8$7$^$9!#(B
 .Pp
 .Bl -tag -width level_0__ -compact
-.It Em level 0
-5 bytes
-.It Em level 1
-8 bytes
+.It Em $B%l%Y%k(B 0
+5 $B%P%$%H(B
+.It Em $B%l%Y%k(B 1
+8 $B%P%$%H(B
 .El
 .Pp
-The array
+$BG[Ns(B
 .Dv syncmask
-holds a bit mask and pattern to detect the first byte of the
-data packet.
+$B$O!"%G!<%?%Q%1%C%H$N@hF,%P%$%H$r8!=P$9$k$?$a$N!"%S%C%H%^%9%/$H%Q%?!<%s$r(B
+$BJ];}$7$^$9!#(B
 .Dv syncmask[0]
-is the bit mask to be ANDed with a byte. If the result is equal to
-.Dv syncmask[1] ,
-the byte is likely to be the first byte of the data packet.
-Note that this method of detecting the first byte is not 100% reliable,
-thus, should be taken only as an advisory measure.
+$B$O%S%C%H%^%9%/$G!"D4$Y$k%P%$%H$H(B AND $B$r<h$j$^$9!#$3$N7k2L$,(B
+.Dv syncmask[1]
+$B$HEy$7$$>l9g!"$=$N%P%$%H$O%G!<%?%Q%1%C%H$N@hF,%P%$%H$i$7$$$H8@$($^$9!#(B
+$B$3$NJ}K!$G@hF,%P%$%H$r8!=P$9$k$3$H$O(B 100% $B3N<B$H$O8@$($^$;$s!#(B
+$B$h$C$F!"$3$l$O;29M07$$$K$9$k$Y$-$HCm0U$r$7$F$*$-$^$9!#(B
 .Pp
 .It Dv MOUSE_SETMODE Ar mousemode_t *mode
-The command changes the current operation parameters of the mouse driver
-as specified in
-.Ar mode .
-Only
+$B$3$N%3%^%s%I$O!"%^%&%9%I%i%$%P$N8=:_$N5!G=%Q%i%a!<%?$r(B
+.Ar mode
+$B$G;XDj$7$?CM$KJQ99$7$^$9!#(B
 .Dv level 
-may be modifiable. Setting values in the other field does not generate
-error and has no effect.
+$B$@$1$,JQ992DG=$G$9!#B>$N%U%#!<%k%I$KCM$r@_Dj$7$F$b%(%i!<$O=P$^$;$s$,!"(B
+$B2?$N8z2L$b5Z$\$7$^$;$s!#(B
 .\" .Pp
 .\" .It Dv MOUSE_GETVARS Ar mousevar_t *vars
 .\" .It Dv MOUSE_SETVARS Ar mousevar_t *vars
@@ -270,40 +260,37 @@
 .Pp
 .It Dv MOUSE_READDATA Ar mousedata_t *data
 .It Dv MOUSE_READSTATE Ar mousedata_t *state
-These commands are not supported by the
+$B$3$l$i$N%3%^%s%I$O(B
 .Nm
-driver.
+$B%I%i%$%P$G$O%5%]!<%H$5$l$^$;$s!#(B
 .Pp
 .It Dv MOUSE_GETSTATE Ar mousestatus_t *status
-The command returns the current state of buttons and 
-movement counts in the structure as defined in
-.Xr mouse 4 .
+$B$3$N%3%^%s%I$O%\%?%s$N8=:_$N>uBV$HF0$-$N%+%&%s%H$r(B
+.Xr mouse 4
+$B$GDj5A$5$l$?9=B$BN$GJV$7$^$9!#(B
 .El
-.Ss Console and Consolectl Ioctls
-The user process issues console 
+.Ss $B%3%s%=!<%k$H%3%s%=!<%k@)8f(B Ioctl
+$B%f!<%6%W%m%0%i%`$O!"8=:_$N2>A[%3%s%=!<%k$KBP$7$F%3%s%=!<%k(B 
 .Fn ioctl
-calls to the current virtual console in order to control
-the mouse pointer.
-The console
+$B%7%9%F%`%3!<%k$rH/9T$7!"%^%&%9%]%$%s%?$r@)8f$7$^$9!#%3%s%=!<%k(B
 .Fn ioctl 
-also provides a method for the user process to receive a
+$B$O!"%\%?%s$,2!$5$l$?;~$K(B
 .Xr signal 3
-when a button is pressed.
+$B$r<u$1<h$k<jCJ$r%f!<%6%W%m%;%9$KDs6!$7$^$9!#(B
 .Pp
-The mouse daemon
+$B%^%&%9%G!<%b%s(B
 .Xr moused 8
-uses 
+$B$O!"(B
 .Fn ioctl
-calls to the console control device
+$B%7%9%F%`%3!<%k$rMQ$$$F!"%3%s%=!<%k@)8f%G%P%$%9(B
 .Pa /dev/consolectl
-to inform the console of mouse actions including mouse movement
-and button status.
+$B$K!"%^%&%9$NF0$-$H%\%?%s$N>uBV$r4^$`%^%&%9$NF0:n$rDLCN$7$^$9!#(B
 .Pp
-Both classes
+$BN>J}$N%/%i%9$N(B
 .Fn ioctl
-commands are defined as
+$B%3%^%s%I$H$b!"0J2<$N0z?t$r<h$k(B
 .Dv CONS_MOUSECTL
-which takes the following argument.
+$B$H$7$FDj5A$5$l$F$$$^$9!#(B
 .Bd -literal
 struct mouse_info {
     int operation;
@@ -317,66 +304,70 @@
 .Pp
 .Bl -tag -width operation -compact
 .It Dv operation
-This can be one of
+$B$3$l$O0J2<$N$I$l$+0l$D$r<h$j$^$9!#(B
 .Pp
 .Bl -tag -width MOUSE_MOVEABS -compact
 .It Dv MOUSE_SHOW
-Enables and displays mouse cursor.
+$B%^%&%9%+!<%=%k$rM-8z$K$7$FI=<($7$^$9!#(B
 .It Dv MOUSE_HIDE
-Disables and hides mouse cursor.
+$B%^%&%9%+!<%=%k$rL58z$K$7$F1#$7$^$9!#(B
 .It Dv MOUSE_MOVEABS
-Moves mouse cursor to position supplied in
-.Dv u.data .
+$B%^%&%9%+!<%=%k$r(B
+.Dv u.data
+$B$GM?$($?0LCV$K0\F0$5$;$^$9!#(B
 .It Dv MOUSE_MOVEREL
-Adds position supplied in
+$B8=:_$N0LCV$K!"(B
 .Dv u.data
-to current position.
+$B$GM?$($?CM$r2C$($?0LCV$K0\F0$5$;$^$9!#(B
 .It Dv MOUSE_GETINFO
-Returns current mouse position in the current virtual console 
-and button status in
-.Dv u.data .
+$B8=:_$N2>A[%3%s%=!<%k$K$*$1$k%^%&%9$N8=:_$N0LCV$H!"%\%?%s$N>uBV$r(B
+.Dv u.data
+$B$K<}$a$FJV$7$^$9!#(B
 .It Dv MOUSE_MODE
-This sets the
+$B$3$l$O!"(B
 .Xr signal 3
-to be delivered to the current process when a button is pressed.
-The signal to be delivered is set in
-.Dv u.mode .
+$B$r@_Dj$7!"8=:_$N%W%m%;%9$K%\%?%s$,2!$5$l$?$3$H$rDLCN$7$^$9!#(B
+$B%7%0%J%k$O(B
+.Dv u.mode
+$B$K<}$a$i$l$FDLCN$5$l$^$9!#(B
 .El
 .Pp
-The above operations are for virtual consoles. The operations defined 
-below are for the console control device and used by 
+$B$3$3$^$G$N5!G=$O2>A[%3%s%=!<%k$KBP$9$k$b$N$G$9!#$3$l0J8e$KDj5A$9$k5!G=$O(B
+$B%3%s%=!<%k@)8f%I%i%$%P$KBP$9$k$b$N$G!"(B
 .Xr moused 8
-to pass mouse data to the console driver.
+$B$,%^%&%9%G!<%?$r%3%s%=!<%k%I%i%$%P$KEO$9$?$a$KMQ$$$^$9!#(B
 .Pp
 .Bl -tag -width MOUSE_MOVEABS -compact
 .It Dv MOUSE_ACTION
 .It Dv MOUSE_MOTIONEVENT
-These operations take the information in
+$B$3$l$i$N5!G=$O(B
 .Dv u.data
-and act upon it.  Mouse data will be sent to the
+$B$K>pJs$r<h$j!"$=$N>e$GF0:n$7$^$9!#(B
+.Nm
+$B%I%i%$%P$,%*!<%W%s$5$l$F$$$k>l9g!"%^%&%9%G!<%?$O(B
 .Nm
-driver if it is open.
+$B%I%i%$%P$KAw$i$l$^$9!#(B
 .Dv MOUSE_ACTION
-also processes button press actions and sends signal to the process if
-requested or performs cut and paste operations
-if the current console is a text interface. 
+$B$O%\%?%s2!$72<$2F0:n$r0l=o$K9T$J$$!"MW5a$,$"$k>l9g$O%7%0%J%k$rAw$j$^$9!#(B
+$B8=:_$N%3%s%=!<%k$,%F%-%9%H%$%s%?%U%'!<%9$r;}$D>l9g!"%+%C%H%"%s%I%Z!<%9%H(B
+$B=hM}$r9T$J$$$^$9!#(B
 .It Dv MOUSE_BUTTONEVENT
 .Dv u.data
-specifies a button and its click count. The console driver will
-use this information for signal delivery if requested or 
-for cut and paste operations if the console is in text mode.
+$B$G!"%\%?%s$N<oN`$H$=$N%/%j%C%/%+%&%s%H?t$r;XDj$7$^$9!#%3%s%=!<%k%I%i%$%P$O(B
+$B$=$N>pJs$rMQ$$!"MW5a$,$"$k>l9g$O%7%0%J%k$rAw$j!"%3%s%=!<%k$,(B
+$B%F%-%9%H%$%s%?%U%'!<%9$r;}$D>l9g$O!"%+%C%H%"%s%I%Z!<%9%H=hM}$r9T$J$$$^$9!#(B
 .El
 .Pp
 .Dv MOUSE_MOTIONEVENT
-and 
+$B$H(B
 .Dv MOUSE_BUTTONEVENT
-are newer interface and are designed to be used together.
-They are intended to replace functions performed by
+$B$O!"?7$7$$%$%s%?%U%'!<%9$G!"$3$NFs$D$r0l=o$K;H$&$3$H$rA[Dj$7$F(B
+$B:n$i$l$F$$$^$9!#$3$l$i$O(B
 .Dv MOUSE_ACTION
-alone.
+$B$R$H$D$G9T$J$o$l$F$$$k5!G=$rCV$-49$($k$?$a$N$b$N$G$9!#(B
 .Pp
 .It Dv u
-This union is one of
+$B$3$N6&MQBN$O!"0J2<$N$$$:$l$+$G$9!#(B
 .Pp
 .Bl -tag -width data -compact
 .It Dv data
@@ -390,13 +381,13 @@
 .Ed
 .Pp
 .Dv x ,
-.Dv y 
-and
+.Dv y ,
 .Dv z
-represent movement of the mouse along respective directions.
+$B$O!"$=$l$>$l$NJ}8~$KBP$9$k%^%&%9$N0\F0$rI=$7$^$9!#(B
 .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. 
+$B$O%\%?%s$N>uBV$r<($7$^$9!#%S%C%H(B 0 $B$+$i%S%C%H(B 30 $B$^$G$G:GBg(B 31 $B8D$N(B
+$B%\%?%s$r%3!<%I2=$G$-$^$9!#%\%?%s$,2!$5$l$F$$$k$H!"BP1~$9$k%S%C%H$,(B
+$B%;%C%H$5$l$^$9!#(B
 .Pp
 .It Dv mode
 .Bd -literal
@@ -406,14 +397,12 @@
 };
 .Ed
 .Pp
-The
 .Dv signal
-field specifies the signal to be delivered to the process. It must be 
-one of the values defined in
-.Ao Pa signal.h Ac .
-The
+$B%U%#!<%k%I$O!"%W%m%;%9$KAw$k%7%0%J%k$r;XDj$7$^$9!#$3$NCM$O(B
+.Ao Pa signal.h Ac
+$B$GDj5A$5$l$?CM$N$&$A$N$R$H$D$G$"$kI,MW$,$"$j$^$9!#(B
 .Dv mode
-field is currently unused.
+$B%U%#!<%k%I$O8=:_$O;HMQ$5$l$F$$$^$;$s!#(B
 .Pp
 .It Dv event
 .Bd -literal
@@ -423,42 +412,41 @@
 };
 .Ed
 .Pp
-The
 .Dv id
-field specifies a button number as in 
-.Dv u.data.buttons .
-Only one bit/button is set.
-The
+$B%U%#!<%k%I$O!"(B
+.Dv u.data.buttons
+$B$HF1$8$h$&$K!"%\%?%sHV9f$r;XDj$7$^$9!#(B
+1 $B%S%C%H(B/$B%\%?%s$@$1$r@_Dj$G$-$^$9!#(B
 .Dv value
-field
-holds the click count: the number of times the user has clicked the button
-successively.
+$B%U%#!<%k%I$O!"%/%j%C%/?t$rJ];}$7$F$$$^$9!#$3$l$O!"%f!<%6$,%\%?%s$rL5;v(B
+$B2!$7$?2s?t$G$9!#(B
 .Pp
 .El
 .El
-.Sh FILES
+.Sh $B4XO"%U%!%$%k(B
 .Bl -tag -width /dev/consolectl -compact
 .It Pa /dev/consolectl
-device to control the console
+$B%3%s%=!<%k$r@)8f$9$k%G%P%$%9(B
 .It Pa /dev/sysmouse
-virtualized mouse driver
+$B2>A[2=$5$l$?%^%&%9%I%i%$%P(B
 .It Pa /dev/ttyv%d
-virtual consoles
+$B2>A[%3%s%=!<%k(B
 .El
-.Sh SEE ALSO
+.Sh $B4XO"9`L\(B
 .Xr vidcontrol 1 ,
 .Xr ioctl 2 ,
 .Xr signal 3 ,
 .Xr mouse 4 ,
 .Xr moused 8
-.Sh HISTORY
-The
+.Sh $BNr;K(B
 .Nm
-manual page example first appeared in
-.Fx 2.2 .
-.Sh AUTHORS
-This
-manual page was written by
+$B%^%K%e%"%k%Z!<%8$O!"(B
+.Fx 2.2
+$B$G=i$a$F8=$l$^$7$?!#(B
+.Sh $B:n<T(B
+$B$3$N%^%K%e%"%k$O(B
 .An John-Mark Gurney Aq gurney_j@efn.org 
-and 
-.An Kazutaka Yokota Aq yokota@FreeBSD.org .
+$B$H(B
+.An Kazutaka Yokota Aq yokota@FreeBSD.org
+$B$,=q$-$^$7$?!#(B
+.\" translated by Norihiro Kumagai kuma@nk.rim.or.jp 99-7-18
