3 .\" This manpage is Copyright (C) 1996 Michael Haardt.
4 .\" Updates Nov 1998, Andries Brouwer
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date. The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein. The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
26 .\" Japanese Version Copyright (c) 1996,1997,1998
27 .\" ISHIKAWA Mutsumi,TAKAHASHI Mutsuji
28 .\" all rights reserved.
29 .\" Translated Tue Feb 14 00:47:44 JST 1997
30 .\" by ISHIKAWA Mutsumi <ishikawa@linux.or.jp.jp>
31 .\" and TAKAHASHI Mutsuji <muz@ilp.iijnet.or.jp>
33 .\" Japanese Version Last Modified Sun Jan 11 03:55:54 1998
34 .\" by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
35 .\" Updated & Modefied Sat Feb 27 1999 by Shouichi Saito
37 .\" WORD: serial mouse シリアルマウス
38 .\" WORD: interface インターフェース
39 .\" WORD: RS232/V24 RS232/V24
40 .\" WORD: dialout line ダイアルアウトライン
42 .\" WORD: Microsoft-compatible マイクロソフト互換
44 .TH MOUSE 4 1996-02-10 "Linux" "Linux Programmer's Manual"
46 .\"O mouse \- serial mouse interface
48 mouse \- シリアルマウスインターフェース
49 .\"O .SH CONFIGURATION
51 .\"O Serial mice are connected to a serial RS232/V24 dialout line, see
53 .\"O for a description.
54 シリアルマウスは RS232/V24 ダイアルアウトラインに接続される。
55 RS232/V24 ダイアルアウトライン については
62 .\"O The pinout of the usual 9 pin plug as used for serial mice is:
63 シリアルマウスで使われる普通の 9 ピンプラグのピン配列は以下である:
69 3 TX \-12 V, Imax = 10 mA
70 4 DTR +12 V, Imax = 10 mA
71 7 RTS +12 V, Imax = 10 mA
75 .\"O This is the specification, in fact 9 V suffices with most mice.
76 これは仕様書であり、実際はほとんどのマウスでは 9 V で十分である。
78 .\"O The mouse driver can recognize a mouse by dropping RTS to low and raising
80 .\"O About 14 ms later the mouse will send 0x4D (\(aqM\(aq) on the data line.
81 .\"O After a further 63 ms, a Microsoft-compatible 3-button mouse will send
82 .\"O 0x33 (\(aq3\(aq).
83 マウスドライバは RTS をロー(low)に落し、再び上げることによって、マウスを認識でき
84 る。およそ 14 ms 後、マウスはデータライン上に 0x4D (\(aqM\(aq) を送るだろう。さら
85 に 63ms あと、マイクロソフト互換 3ボタンマウスは 0x33 (\(aq3\(aq) を送る。
87 .\"O The relative mouse movement is sent as \fIdx\fP (positive means right)
88 .\"O and \fIdy\fP (positive means down).
89 .\"O Various mice can operate at different speeds.
90 .\"O To select speeds, cycle through the
91 .\"O speeds 9600, 4800, 2400 and 1200 bit/s, each time writing the two characters
92 .\"O from the table below and waiting 0.1 seconds.
93 .\"O The following table shows available speeds and the strings that select them:
94 マウスの相対的な移動は、\fIdx\fP(正が右)と\fIdy\fP(正が下)として伝えられる。
95 各種のマウスは異なったスピードで操作できる。スピードを選択するには、
96 下の表の2文字を送ってから 0.1 秒待つことで、9600, 4800, 2400, 1200
98 以下の表では選択可能なスピードとそれを選択するための文字列を示している。
109 .\"O The first byte of a data packet can be used to synchronization purposes.
110 データパケットの第 1 バイトは同期をとるのに利用できる。
111 .\"O .SS "Microsoft protocol"
112 .SS "マイクロソフト プロトコル(Microsoft Protocol)"
113 .\"O The \fBMicrosoft\fP protocol uses 1 start bit, 7 data bits, no parity
114 .\"O and one stop bit at the speed of 1200 bits/sec.
115 .\"O Data is sent to RxD in 3-byte packets.
116 .\"O The \fIdx\fP and \fIdy\fP movements are sent as
117 .\"O two's-complement, \fIlb\fP (\fIrb\fP) are set when the left (right)
118 .\"O button is pressed:
119 \fBマイクロソフト\fPプロトコルは、1200 bits/sec のスピードで、1 ス
120 タートビット(1 start bit)、7 データビット(7 data bits)、パリティな
121 し、1 ストップビット(1 stop bit)である。
122 データは RxD に 3 バイトのパケットとして送られる。\fIdx\fP と \fIdy\fP
123 の動きは 2 の補数表示で送られ、左(右)のボタンが押された時には \fIlb\fP
128 byte d6 d5 d4 d3 d2 d1 d0
129 1 1 lb rb dy7 dy6 dx7 dx6
130 2 0 dx5 dx4 dx3 dx2 dx1 dx0
131 3 0 dy5 dy4 dy3 dy2 dy1 dy0
133 .\"O .SS "3-button Microsoft protocol"
134 .SS "3つボタン マイクロソフト プロトコル(3-button Microsoft protocol)"
135 .\"O Original Microsoft mice only have two buttons.
136 .\"O However, there are some
137 .\"O three button mice which also use the Microsoft protocol.
139 .\"O releasing the middle button is reported by sending a packet with zero
140 .\"O movement and no buttons pressed.
141 .\"O (Thus, unlike for the other two buttons, the status of the middle
142 .\"O button is not reported in each packet.)
143 本来のマイクロソフトマウスは 2 つのボタンしか持たない。しかし、3 つボタン
144 のマウスでマイクロソフトプロトコルの物も存在する。真中のボタンを押す、
145 または放すということは、動きゼロでボタンが押されていないというパケット
146 を送ることで伝えられる。(従って他の二つのボタンと違い、真中のボタ
147 ンのステータスは、それぞれのパケットからは伝わって来ない。)
148 .\"O .SS "Logitech protocol"
149 .SS "ロジテック プロトコル(Logitech protocol)"
150 .\"O Logitech serial 3-button mice use a different extension of the
151 .\"O Microsoft protocol: when the middle button is up, the above 3-byte
153 .\"O When the middle button is down a 4-byte packet is
154 .\"O sent, where the 4th byte has value 0x20 (or at least has the 0x20
156 .\"O In particular, a press of the middle button is reported
157 .\"O as 0,0,0,0x20 when no other buttons are down.
158 ロジテック シリアル 3つボタンマウスは、マイクロソフト プロトコルとは
159 異なった拡張をしている。:真中のボタンが押されてないと、上記 3バイトの
160 パケットが送られる。真中のボタンが押されていると、4バイトのパケットが
161 送られる。第4バイトは 0x20 の値を持っている(あるいは、少なくとも 0x20
162 ビットがセットされている)。 但し、他のボタンが押されていない状態で、
163 真中のボタンが押されると、0,0,0,0x20 と伝えられる。
164 .\"O .SS "Mousesystems protocol"
165 .SS "マウスシステムズ プロトコル(Mousesystems protocol)"
166 .\"O The \fBMousesystems\fP protocol uses 1 start bit, 8 data bits, no parity
167 .\"O and two stop bits at the speed of 1200 bits/sec.
168 .\"O Data is sent to RxD in
170 .\"O \fIdx\fP is sent as the sum of the two two's-complement
171 .\"O values, \fIdy\fP is send as negated sum of the two two's-complement
173 .\"O \fIlb\fP (\fImb\fP, \fIrb\fP) are cleared when the left (middle,
174 .\"O right) button is pressed:
175 \fBマウスシステムズ\fPプロトコルは、1200 bits/secで、1 スタートビット、
176 8 データビット、パリティなし、2 ストップビットである。
177 データは、RxD に 5 バイトのパケットとして送られる。\fIdx\fP は 2 つの
178 2 の補数の和として送られ、\fIdy\fP は 2 つの 2 の補数の和の否定
179 として送られる。左(中、右)のボタンが押された時には\fIlb\fP
180 (\fImb\fP, \fIrb\fP) がクリアされる。
184 byte d7 d6 d5 d4 d3 d2 d1 d0
186 2 0 dxa6 dxa5 dxa4 dxa3 dxa2 dxa1 dxa0
187 3 0 dya6 dya5 dya4 dya3 dya2 dya1 dya0
188 4 0 dxb6 dxb5 dxb4 dxb3 dxb2 dxb1 dxb0
189 5 0 dyb6 dyb5 dyb4 dyb3 dyb2 dyb1 dyb0
192 .\"O Bytes 4 and 5 describe the change that occurred since bytes 2 and 3
193 .\"O were transmitted.
194 第 4,5 バイトには、第 2,3 バイトが送られたあと生じた変更が記述される。
195 .\"O .SS "Sun protocol"
196 .SS "サン プロトコル(Sun protocol)"
197 .\"O The \fBSun\fP protocol is the 3-byte version of the above 5-byte
198 .\"O Mousesystems protocol: the last two bytes are not sent.
199 \fBサン\fP プロトコルは、上記の 5 バイト マウスシステムプロトコルの 3
200 バイト版です。後の 2 バイトは送られません。
201 .\"O .SS "MM protocol"
202 .SS "MM プロトコル(MM protocol)"
203 .\"O The \fBMM\fP protocol uses 1 start bit, 8 data bits, odd parity and one
204 .\"O stop bit at the speed of 1200 bits/sec.
205 .\"O Data is sent to RxD in 3-byte
207 .\"O \fIdx\fP and \fIdy\fP are sent as single signed values, the
208 .\"O sign bit indicating a negative value.
209 .\"O \fIlb\fP (\fImb\fP, \fIrb\fP) are
210 .\"O set when the left (middle, right) button is pressed:
211 \fBMM\fP プロトコルは 1200 bits/sec で 1 スタートビット、8 データビッ
212 ト、奇数パリティ、 1 ストップビットを使う。データは RxD に 3 バイトのパ
213 ケットとして送られる。\fIdx\fP と \fIdy\fP は一つの符号つきの値として
214 送られ、サインビットは負の値を表す。左(中、右)のボタンが押された時には
215 \fIlb\fP (\fImb\fP, \fIrb\fP)がセットされる。
219 byte d7 d6 d5 d4 d3 d2 d1 d0
220 1 1 0 0 dxs dys lb mb rb
221 2 0 dx6 dx5 dx4 dx3 dx2 dx1 dx0
222 3 0 dy6 dy5 dy4 dy3 dy2 dy1 dy0
228 .\"O A commonly used symlink pointing to a mouse device.
229 一般的にマウスデバイスをさすのに使われるシンボリックリンク