2 .\" This manpage is Copyright (C) 1996 Michael Haardt.
3 .\" Updates Nov 1998, Andries Brouwer
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.
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 .\"*******************************************************************
28 .\" This file was generated with po4a. Translate the source file.
30 .\"*******************************************************************
32 .\" Japanese Version Copyright (c) 1996,1997,1998
33 .\" ISHIKAWA Mutsumi,TAKAHASHI Mutsuji
34 .\" all rights reserved.
35 .\" Translated Tue Feb 14 00:47:44 JST 1997
36 .\" by ISHIKAWA Mutsumi <ishikawa@linux.or.jp.jp>
37 .\" and TAKAHASHI Mutsuji <muz@ilp.iijnet.or.jp>
39 .TH MOUSE 4 1996\-02\-10 Linux "Linux Programmer's Manual"
41 mouse \- シリアルマウスインターフェース
43 シリアルマウスは RS232/V24 ダイアルアウトラインに接続される。 RS232/V24 ダイアルアウトライン については \fBttyS\fP(4)
47 シリアルマウスで使われる普通の 9 ピンプラグのピン配列は以下である:
53 3 TX \-12 V, Imax = 10 mA
54 4 DTR +12 V, Imax = 10 mA
55 7 RTS +12 V, Imax = 10 mA
59 これは仕様書であり、実際はほとんどのマウスでは 9 V で十分である。
61 マウスドライバは RTS をロー(low)に落し、再び上げることによって、マウスを認識でき る。およそ 14 ms 後、マウスはデータライン上に
62 0x4D (\(aqM\(aq) を送るだろう。さら に 63ms あと、マイクロソフト互換 3ボタンマウスは 0x33 (\(aq3\(aq)
65 マウスの相対的な移動は、\fIdx\fP(正が右)と\fIdy\fP(正が下)として伝えられる。
66 各種のマウスは異なったスピードで操作できる。スピードを選択するには、 下の表の2文字を送ってから 0.1 秒待つことで、9600, 4800,
67 2400, 1200 bit/s を順に選べる。 以下の表では選択可能なスピードとそれを選択するための文字列を示している。
78 データパケットの第 1 バイトは同期をとるのに利用できる。
79 .SS "マイクロソフト プロトコル(Microsoft Protocol)"
80 \fBマイクロソフト\fPプロトコルは、1200 bits/sec のスピードで、1 ス タートビット(1 start bit)、7 データビット(7
81 data bits)、パリティな し、1 ストップビット(1 stop bit)である。 データは RxD に 3
82 バイトのパケットとして送られる。\fIdx\fP と \fIdy\fP の動きは 2 の補数表示で送られ、左(右)のボタンが押された時には \fIlb\fP
87 byte d6 d5 d4 d3 d2 d1 d0
88 1 1 lb rb dy7 dy6 dx7 dx6
89 2 0 dx5 dx4 dx3 dx2 dx1 dx0
90 3 0 dy5 dy4 dy3 dy2 dy1 dy0
92 .SS "3つボタン マイクロソフト プロトコル(3\-button Microsoft protocol)"
93 本来のマイクロソフトマウスは 2 つのボタンしか持たない。しかし、3 つボタン のマウスでマイクロソフトプロトコルの物も存在する。真中のボタンを押す、
94 または放すということは、動きゼロでボタンが押されていないというパケット を送ることで伝えられる。(従って他の二つのボタンと違い、真中のボタ
95 ンのステータスは、それぞれのパケットからは伝わって来ない。)
96 .SS "ロジテック プロトコル(Logitech protocol)"
97 ロジテック シリアル 3つボタンマウスは、マイクロソフト プロトコルとは 異なった拡張をしている。:真中のボタンが押されてないと、上記 3バイトの
98 パケットが送られる。真中のボタンが押されていると、4バイトのパケットが 送られる。第4バイトは 0x20 の値を持っている(あるいは、少なくとも
99 0x20 ビットがセットされている)。 但し、他のボタンが押されていない状態で、 真中のボタンが押されると、0,0,0,0x20 と伝えられる。
100 .SS "マウスシステムズ プロトコル(Mousesystems protocol)"
101 \fBマウスシステムズ\fPプロトコルは、1200 bits/secで、1 スタートビット、 8 データビット、パリティなし、2 ストップビットである。
102 データは、RxD に 5 バイトのパケットとして送られる。\fIdx\fP は 2 つの 2 の補数の和として送られ、\fIdy\fP は 2 つの 2
103 の補数の和の否定 として送られる。左(中、右)のボタンが押された時には\fIlb\fP (\fImb\fP, \fIrb\fP) がクリアされる。
107 byte d7 d6 d5 d4 d3 d2 d1 d0
109 2 0 dxa6 dxa5 dxa4 dxa3 dxa2 dxa1 dxa0
110 3 0 dya6 dya5 dya4 dya3 dya2 dya1 dya0
111 4 0 dxb6 dxb5 dxb4 dxb3 dxb2 dxb1 dxb0
112 5 0 dyb6 dyb5 dyb4 dyb3 dyb2 dyb1 dyb0
115 第 4,5 バイトには、第 2,3 バイトが送られたあと生じた変更が記述される。
116 .SS "サン プロトコル(Sun protocol)"
117 \fBサン\fP プロトコルは、上記の 5 バイト マウスシステムプロトコルの 3 バイト版です。後の 2 バイトは送られません。
118 .SS "MM プロトコル(MM protocol)"
119 \fBMM\fP プロトコルは 1200 bits/sec で 1 スタートビット、8 データビッ ト、奇数パリティ、 1 ストップビットを使う。データは
120 RxD に 3 バイトのパ ケットとして送られる。\fIdx\fP と \fIdy\fP は一つの符号つきの値として
121 送られ、サインビットは負の値を表す。左(中、右)のボタンが押された時には \fIlb\fP (\fImb\fP, \fIrb\fP)がセットされる。
125 byte d7 d6 d5 d4 d3 d2 d1 d0
126 1 1 0 0 dxs dys lb mb rb
127 2 0 dx6 dx5 dx4 dx3 dx2 dx1 dx0
128 3 0 dy6 dy5 dy4 dy3 dy2 dy1 dy0
133 一般的にマウスデバイスをさすのに使われるシンボリックリンク
135 \fBttyS\fP(4), \fBgpm\fP(8)
137 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
138 である。プロジェクトの説明とバグ報告に関する情報は
139 http://www.kernel.org/doc/man\-pages/ に書かれている。