OSDN Git Service

d26723c6aacf029500b3a574109914a5a9c6e8f7
[linuxjm/LDP_man-pages.git] / draft / man4 / mouse.4
1 .\" t
2 .\" This manpage is Copyright (C) 1996 Michael Haardt.
3 .\" Updates Nov 1998, Andries Brouwer
4 .\"
5 .\" %%%LICENSE_START(VERBATIM)
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.
9 .\"
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.
14 .\"
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
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH MOUSE 4 1996\-02\-10 Linux "Linux Programmer's Manual"
32 .SH 名前
33 mouse \- シリアルマウスインターフェース
34 .SH 設定
35 シリアルマウスは RS232/V24 ダイアルアウトラインに接続される。 RS232/V24 ダイアルアウトライン については \fBttyS\fP(4)
36 を参照のこと。
37 .SH 説明
38 .SS 概説
39 シリアルマウスで使われる普通の 9 ピンプラグのピン配列は以下である:
40 .TS
41 center;
42 r c l.
43 pin     name    used for
44 2       RX      Data
45 3       TX      \-12 V, Imax = 10 mA
46 4       DTR     +12 V, Imax = 10 mA
47 7       RTS     +12 V, Imax = 10 mA
48 5       GND     Ground
49 .TE
50
51 これは仕様書であり、実際はほとんどのマウスでは 9 V で十分である。
52 .PP
53 マウスドライバは RTS をロー(low)に落し、再び上げることによって、マウスを認識でき る。およそ 14 ms 後、マウスはデータライン上に
54 0x4D (\(aqM\(aq) を送るだろう。さら に 63ms あと、マイクロソフト互換 3ボタンマウスは 0x33 (\(aq3\(aq)
55 を送る。
56 .PP
57 マウスの相対的な移動は、\fIdx\fP(正が右)と\fIdy\fP(正が下)として伝えられる。
58 各種のマウスは異なったスピードで操作できる。スピードを選択するには、 下の表の2文字を送ってから 0.1 秒待つことで、9600, 4800,
59 2400, 1200 bit/s を順に選べる。 以下の表では選択可能なスピードとそれを選択するための文字列を示している。
60 .TS
61 center;
62 l l.
63 bit/s   string
64 9600    *q
65 4800    *p
66 2400    *o
67 1200    *n
68 .TE
69
70 データパケットの第 1 バイトは同期をとるのに利用できる。
71 .SS "マイクロソフト プロトコル(Microsoft Protocol)"
72 The \fBMicrosoft\fP protocol uses 1 start bit, 7 data bits, no parity and one
73 stop bit at the speed of 1200 bits/sec.  Data is sent to RxD in 3\-byte
74 packets.  The \fIdx\fP and \fIdy\fP movements are sent as two's\-complement, \fIlb\fP
75 (\fIrb\fP)  are set when the left (right)  button is pressed:
76 .TS
77 center;
78 r c c c c c c c.
79 byte    d6      d5      d4      d3      d2      d1      d0
80 1       1       lb      rb      dy7     dy6     dx7     dx6
81 2       0       dx5     dx4     dx3     dx2     dx1     dx0
82 3       0       dy5     dy4     dy3     dy2     dy1     dy0
83 .TE
84 .SS "3つボタン マイクロソフト プロトコル(3\-button Microsoft protocol)"
85 本来のマイクロソフトマウスは 2 つのボタンしか持たない。しかし、3 つボタン のマウスでマイクロソフトプロトコルの物も存在する。真中のボタンを押す、
86 または放すということは、動きゼロでボタンが押されていないというパケット を送ることで伝えられる。(従って他の二つのボタンと違い、真中のボタ
87 ンのステータスは、それぞれのパケットからは伝わって来ない。)
88 .SS "ロジテック プロトコル(Logitech protocol)"
89 ロジテック シリアル 3つボタンマウスは、マイクロソフト プロトコルとは 異なった拡張をしている。:真中のボタンが押されてないと、上記 3バイトの
90 パケットが送られる。真中のボタンが押されていると、4バイトのパケットが 送られる。第4バイトは 0x20 の値を持っている(あるいは、少なくとも
91 0x20 ビットがセットされている)。 但し、他のボタンが押されていない状態で、 真中のボタンが押されると、0,0,0,0x20 と伝えられる。
92 .SS "マウスシステムズ プロトコル(Mousesystems protocol)"
93 The \fBMousesystems\fP protocol uses 1 start bit, 8 data bits, no parity and
94 two stop bits at the speed of 1200 bits/sec.  Data is sent to RxD in 5\-byte
95 packets.  \fIdx\fP is sent as the sum of the two two's\-complement values, \fIdy\fP
96 is send as negated sum of the two two's\-complement values.  \fIlb\fP (\fImb\fP,
97 \fIrb\fP)  are cleared when the left (middle, right) button is pressed:
98 .TS
99 center;
100 r c c c c c c c c.
101 byte    d7      d6      d5      d4      d3      d2      d1      d0
102 1       1       0       0       0       0       lb      mb      rb
103 2       0       dxa6    dxa5    dxa4    dxa3    dxa2    dxa1    dxa0
104 3       0       dya6    dya5    dya4    dya3    dya2    dya1    dya0
105 4       0       dxb6    dxb5    dxb4    dxb3    dxb2    dxb1    dxb0
106 5       0       dyb6    dyb5    dyb4    dyb3    dyb2    dyb1    dyb0
107 .TE
108
109 第 4,5 バイトには、第 2,3 バイトが送られたあと生じた変更が記述される。
110 .SS "サン プロトコル(Sun protocol)"
111 \fBサン\fP プロトコルは、上記の 5 バイト マウスシステムプロトコルの 3 バイト版です。後の 2 バイトは送られません。
112 .SS "MM プロトコル(MM protocol)"
113 The \fBMM\fP protocol uses 1 start bit, 8 data bits, odd parity and one stop
114 bit at the speed of 1200 bits/sec.  Data is sent to RxD in 3\-byte packets.
115 \fIdx\fP and \fIdy\fP are sent as single signed values, the sign bit indicating a
116 negative value.  \fIlb\fP (\fImb\fP, \fIrb\fP)  are set when the left (middle, right)
117 button is pressed:
118 .TS
119 center;
120 r c c c c c c c c.
121 byte    d7      d6      d5      d4      d3      d2      d1      d0
122 1       1       0       0       dxs     dys     lb      mb      rb
123 2       0       dx6     dx5     dx4     dx3     dx2     dx1     dx0
124 3       0       dy6     dy5     dy4     dy3     dy2     dy1     dy0
125 .TE
126 .SH ファイル
127 .TP 
128 \fI/dev/mouse\fP
129 一般的にマウスデバイスをさすのに使われるシンボリックリンク
130 .SH 関連項目
131 \fBttyS\fP(4), \fBgpm\fP(8)
132 .SH この文書について
133 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
134 である。プロジェクトの説明とバグ報告に関する情報は
135 http://www.kernel.org/doc/man\-pages/ に書かれている。