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 ¥À¥¤¥¢¥ë¥¢¥¦¥È¥é¥¤¥ó
41 .\" WORD: pinout ¥Ô¥óÇÛÎó
42 .\" WORD: Microsoft-compatible ¥Þ¥¤¥¯¥í¥½¥Õ¥È¸ß´¹
44 .TH MOUSE 4 1996-02-10 "Linux" "Linux Programmer's Manual"
46 mouse \- ¥·¥ê¥¢¥ë¥Þ¥¦¥¹¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹
48 ¥·¥ê¥¢¥ë¥Þ¥¦¥¹¤Ï RS232/V24 ¥À¥¤¥¢¥ë¥¢¥¦¥È¥é¥¤¥ó¤ËÀܳ¤µ¤ì¤ë¡£
49 RS232/V24 ¥À¥¤¥¢¥ë¥¢¥¦¥È¥é¥¤¥ó ¤Ë¤Ä¤¤¤Æ¤Ï
54 ¥·¥ê¥¢¥ë¥Þ¥¦¥¹¤Ç»È¤ï¤ì¤ëÉáÄ̤Π9 ¥Ô¥ó¥×¥é¥°¤Î¥Ô¥óÇÛÎó¤Ï°Ê²¼¤Ç¤¢¤ë:
60 3 TX -12 V, Imax = 10 mA
61 4 DTR +12 V, Imax = 10 mA
62 7 RTS +12 V, Imax = 10 mA
66 ¤³¤ì¤Ï»ÅÍͽñ¤Ç¤¢¤ê¡¢¼ÂºÝ¤Ï¤Û¤È¤ó¤É¤Î¥Þ¥¦¥¹¤Ç¤Ï 9 V ¤Ç½½Ê¬¤Ç¤¢¤ë¡£
68 ¥Þ¥¦¥¹¥É¥é¥¤¥Ð¤Ï RTS ¤ò¥í¡¼(low)¤ËÍ¡¢ºÆ¤Ó¾å¤²¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥Þ¥¦¥¹¤òǧ¼±¤Ç¤
69 ¤ë¡£¤ª¤è¤½ 14 ms ¸å¡¢¥Þ¥¦¥¹¤Ï¥Ç¡¼¥¿¥é¥¤¥ó¾å¤Ë 0x4D (\(aqM\(aq) ¤òÁ÷¤ë¤À¤í¤¦¡£¤µ¤é
70 ¤Ë 63ms ¤¢¤È¡¢¥Þ¥¤¥¯¥í¥½¥Õ¥È¸ß´¹ 3¥Ü¥¿¥ó¥Þ¥¦¥¹¤Ï 0x33 (\(aq3\(aq) ¤òÁ÷¤ë¡£
72 ¥Þ¥¦¥¹¤ÎÁêÂÐŪ¤Ê°ÜÆ°¤Ï¡¢\fIdx\fP(Àµ¤¬±¦)¤È\fIdy\fP(Àµ¤¬²¼)¤È¤·¤ÆÅÁ¤¨¤é¤ì¤ë¡£
73 ³Æ¼ï¤Î¥Þ¥¦¥¹¤Ï°Û¤Ê¤Ã¤¿¥¹¥Ô¡¼¥É¤ÇÁàºî¤Ç¤¤ë¡£¥¹¥Ô¡¼¥É¤òÁªÂò¤¹¤ë¤Ë¤Ï¡¢
74 ²¼¤Îɽ¤Î£²Ê¸»ú¤òÁ÷¤Ã¤Æ¤«¤é 0.1 ÉÃÂԤĤ³¤È¤Ç¡¢9600, 4800, 2400, 1200
76 °Ê²¼¤Îɽ¤Ç¤ÏÁªÂò²Äǽ¤Ê¥¹¥Ô¡¼¥É¤È¤½¤ì¤òÁªÂò¤¹¤ë¤¿¤á¤Îʸ»úÎó¤ò¼¨¤·¤Æ¤¤¤ë¡£
87 ¥Ç¡¼¥¿¥Ñ¥±¥Ã¥È¤ÎÂè 1 ¥Ð¥¤¥È¤ÏƱ´ü¤ò¤È¤ë¤Î¤ËÍøÍѤǤ¤ë¡£
88 .SS "¥Þ¥¤¥¯¥í¥½¥Õ¥È ¥×¥í¥È¥³¥ë(Microsoft Protocol)"
89 \fB¥Þ¥¤¥¯¥í¥½¥Õ¥È\fP¥×¥í¥È¥³¥ë¤Ï¡¢1200 bits/sec ¤Î¥¹¥Ô¡¼¥É¤Ç¡¢1 ¥¹
90 ¥¿¡¼¥È¥Ó¥Ã¥È(1 start bit)¡¢7 ¥Ç¡¼¥¿¥Ó¥Ã¥È(7 data bits)¡¢¥Ñ¥ê¥Æ¥£¤Ê
91 ¤·¡¢1 ¥¹¥È¥Ã¥×¥Ó¥Ã¥È(1 stop bit)¤Ç¤¢¤ë¡£
92 ¥Ç¡¼¥¿¤Ï RxD ¤Ë 3 ¥Ð¥¤¥È¤Î¥Ñ¥±¥Ã¥È¤È¤·¤ÆÁ÷¤é¤ì¤ë¡£\fIdx\fP ¤È \fIdy\fP
93 ¤ÎÆ°¤¤Ï 2 ¤ÎÊä¿ôɽ¼¨¤ÇÁ÷¤é¤ì¡¢º¸(±¦)¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤¿»þ¤Ë¤Ï \fIlb\fP
94 (\fIrb\fP)¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£
98 byte d6 d5 d4 d3 d2 d1 d0
99 1 1 lb rb dy7 dy6 dx7 dx6
100 2 0 dx5 dx4 dx3 dx2 dx1 dx0
101 3 0 dy5 dy4 dy3 dy2 dy1 dy0
103 .SS "3¤Ä¥Ü¥¿¥ó ¥Þ¥¤¥¯¥í¥½¥Õ¥È ¥×¥í¥È¥³¥ë(3-button Microsoft protocol)"
104 ËÜÍè¤Î¥Þ¥¤¥¯¥í¥½¥Õ¥È¥Þ¥¦¥¹¤Ï 2 ¤Ä¤Î¥Ü¥¿¥ó¤·¤«»ý¤¿¤Ê¤¤¡£¤·¤«¤·¡¢3 ¤Ä¥Ü¥¿¥ó
105 ¤Î¥Þ¥¦¥¹¤Ç¥Þ¥¤¥¯¥í¥½¥Õ¥È¥×¥í¥È¥³¥ë¤Îʪ¤â¸ºß¤¹¤ë¡£¿¿Ãæ¤Î¥Ü¥¿¥ó¤ò²¡¤¹¡¢
106 ¤Þ¤¿¤ÏÊü¤¹¤È¤¤¤¦¤³¤È¤Ï¡¢Æ°¤¥¼¥í¤Ç¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤¤¤¦¥Ñ¥±¥Ã¥È
107 ¤òÁ÷¤ë¤³¤È¤ÇÅÁ¤¨¤é¤ì¤ë¡£(½¾¤Ã¤Æ¾¤ÎÆó¤Ä¤Î¥Ü¥¿¥ó¤È°ã¤¤¡¢¿¿Ãæ¤Î¥Ü¥¿
108 ¥ó¤Î¥¹¥Æ¡¼¥¿¥¹¤Ï¡¢¤½¤ì¤¾¤ì¤Î¥Ñ¥±¥Ã¥È¤«¤é¤ÏÅÁ¤ï¤Ã¤ÆÍè¤Ê¤¤¡£)
109 .SS "¥í¥¸¥Æ¥Ã¥¯ ¥×¥í¥È¥³¥ë(Logitech protocol)"
110 ¥í¥¸¥Æ¥Ã¥¯ ¥·¥ê¥¢¥ë 3¤Ä¥Ü¥¿¥ó¥Þ¥¦¥¹¤Ï¡¢¥Þ¥¤¥¯¥í¥½¥Õ¥È ¥×¥í¥È¥³¥ë¤È¤Ï
111 °Û¤Ê¤Ã¤¿³ÈÄ¥¤ò¤·¤Æ¤¤¤ë¡£:¿¿Ãæ¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤Æ¤Ê¤¤¤È¡¢¾åµ 3¥Ð¥¤¥È¤Î
112 ¥Ñ¥±¥Ã¥È¤¬Á÷¤é¤ì¤ë¡£¿¿Ãæ¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤Æ¤¤¤ë¤È¡¢4¥Ð¥¤¥È¤Î¥Ñ¥±¥Ã¥È¤¬
113 Á÷¤é¤ì¤ë¡£Â裴¥Ð¥¤¥È¤Ï 0x20 ¤ÎÃͤò»ý¤Ã¤Æ¤¤¤ë(¤¢¤ë¤¤¤Ï¡¢¾¯¤Ê¤¯¤È¤â 0x20
114 ¥Ó¥Ã¥È¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë)¡£ ⤷¡¢Â¾¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤Æ¤¤¤Ê¤¤¾õÂ֤ǡ¢
115 ¿¿Ãæ¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤ë¤È¡¢0,0,0,0x20 ¤ÈÅÁ¤¨¤é¤ì¤ë¡£
116 .SS "¥Þ¥¦¥¹¥·¥¹¥Æ¥à¥º ¥×¥í¥È¥³¥ë(Mousesystems protocol)"
117 \fB¥Þ¥¦¥¹¥·¥¹¥Æ¥à¥º\fP¥×¥í¥È¥³¥ë¤Ï¡¢1200 bits/sec¤Ç¡¢1 ¥¹¥¿¡¼¥È¥Ó¥Ã¥È¡¢
118 8 ¥Ç¡¼¥¿¥Ó¥Ã¥È¡¢¥Ñ¥ê¥Æ¥£¤Ê¤·¡¢2 ¥¹¥È¥Ã¥×¥Ó¥Ã¥È¤Ç¤¢¤ë¡£
119 ¥Ç¡¼¥¿¤Ï¡¢RxD ¤Ë 5 ¥Ð¥¤¥È¤Î¥Ñ¥±¥Ã¥È¤È¤·¤ÆÁ÷¤é¤ì¤ë¡£\fIdx\fP ¤Ï 2 ¤Ä¤Î
120 2 ¤ÎÊä¿ô¤ÎϤȤ·¤ÆÁ÷¤é¤ì¡¢\fIdy\fP ¤Ï 2 ¤Ä¤Î 2 ¤ÎÊä¿ô¤ÎϤÎÈÝÄê
121 ¤È¤·¤ÆÁ÷¤é¤ì¤ë¡£º¸(Ãæ¡¢±¦)¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤¿»þ¤Ë¤Ï\fIlb\fP
122 (\fImb\fP, \fIrb\fP) ¤¬¥¯¥ê¥¢¤µ¤ì¤ë¡£
126 byte d7 d6 d5 d4 d3 d2 d1 d0
128 2 0 dxa6 dxa5 dxa4 dxa3 dxa2 dxa1 dxa0
129 3 0 dya6 dya5 dya4 dya3 dya2 dya1 dya0
130 4 0 dxb6 dxb5 dxb4 dxb3 dxb2 dxb1 dxb0
131 5 0 dyb6 dyb5 dyb4 dyb3 dyb2 dyb1 dyb0
134 Âè 4,5 ¥Ð¥¤¥È¤Ë¤Ï¡¢Âè 2,3 ¥Ð¥¤¥È¤¬Á÷¤é¤ì¤¿¤¢¤ÈÀ¸¤¸¤¿Êѹ¹¤¬µ½Ò¤µ¤ì¤ë¡£
135 .SS "¥µ¥ó ¥×¥í¥È¥³¥ë(Sun protocol)"
136 \fB¥µ¥ó\fP ¥×¥í¥È¥³¥ë¤Ï¡¢¾åµ¤Î 5 ¥Ð¥¤¥È ¥Þ¥¦¥¹¥·¥¹¥Æ¥à¥×¥í¥È¥³¥ë¤Î 3
137 ¥Ð¥¤¥ÈÈǤǤ¹¡£¸å¤Î 2 ¥Ð¥¤¥È¤ÏÁ÷¤é¤ì¤Þ¤»¤ó¡£
138 .SS "MM ¥×¥í¥È¥³¥ë(MM protocol)"
139 \fBMM\fP ¥×¥í¥È¥³¥ë¤Ï 1200 bits/sec ¤Ç 1 ¥¹¥¿¡¼¥È¥Ó¥Ã¥È¡¢8 ¥Ç¡¼¥¿¥Ó¥Ã
140 ¥È¡¢´ñ¿ô¥Ñ¥ê¥Æ¥£¡¢ 1 ¥¹¥È¥Ã¥×¥Ó¥Ã¥È¤ò»È¤¦¡£¥Ç¡¼¥¿¤Ï RxD ¤Ë 3 ¥Ð¥¤¥È¤Î¥Ñ
141 ¥±¥Ã¥È¤È¤·¤ÆÁ÷¤é¤ì¤ë¡£\fIdx\fP ¤È \fIdy\fP ¤Ï°ì¤Ä¤ÎÉä¹æ¤Ä¤¤ÎÃͤȤ·¤Æ
142 Á÷¤é¤ì¡¢¥µ¥¤¥ó¥Ó¥Ã¥È¤ÏÉé¤ÎÃͤòɽ¤¹¡£º¸(Ãæ¡¢±¦)¤Î¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤¿»þ¤Ë¤Ï
143 \fIlb\fP (\fImb\fP, \fIrb\fP)¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£
147 byte d7 d6 d5 d4 d3 d2 d1 d0
148 1 1 0 0 dxs dys lb mb rb
149 2 0 dx6 dx5 dx4 dx3 dx2 dx1 dx0
150 3 0 dy6 dy5 dy4 dy3 dy2 dy1 dy0
155 °ìÈÌŪ¤Ë¥Þ¥¦¥¹¥Ç¥Ð¥¤¥¹¤ò¤µ¤¹¤Î¤Ë»È¤ï¤ì¤ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯