MOUSE
Section: Special files
(4)
Updated: February 10, 1996
Index
Return to Main Contents
NAME
mouse - ½Ã¸®¾ó ¸¶¿ì½º ÀÎÅÍÆäÀ̽º
CONFIG
½Ã¸®¾ó ¸¶¿ì½º´Â ½Ã¸®¾ó RS232/V24 ´ÙÀÌ¾ó¾Æ¿ô ¶óÀο¡ ¿¬°áµÈ´Ù.
¼³¸íÀ» º¸·Á¸é,
ttys(4)À»º¸¶ó.
DESCRIPTION
Introduction
The pinout of the usual 9 pin plug as used for serial mice is:
½Ã¸®¾ó ¸¶¿ì½º¿¡ ¾²ÀÌ´Â 9ÇÉ Ç÷¯±×ÀÇ ÇɾƿôÀº ´ÙÀ½°¡ °°´Ù.
ÇÉ | À̸§ | ¿ëµµ
|
2 | RX | Data
|
3 | TX | -12 V, Imax = 10 mA
|
4 | DTR | +12 V, Imax = 10 mA
|
7 | RTS | +12 V, Imax = 10 mA
|
5 | GND | Ground
|
À§´Â ¸í¼¼ÀÌ´Ù. »ç½Ç»ó, ´ëºÎºÐÀÇ ¸¶¿ì½º¿¡´Â 9 V·Î ÃæºÐÇÏ´Ù.
¸¶¿ì½º µå¶óÀ̹ö´Â RTS¸¦ ³·Ãß°í, À̸¦ ´Ù½Ã ¿Ã¸®¹Ç·Î¼ ¸¶¿ì½º¸¦ ÀνÄÇÒ ¼ö ÀÖ´Ù.
´ë·« 14msÀÌÈÄ¿¡, ¸¶¿ì½º´Â µ¥ÀÌÅÍ ¶óÀο¡ 0x4D ('M')¸¦ Àü¼ÛÇÒ °ÍÀÌ´Ù. ±×¸®°í 63ms
ÀÌÈÄ¿¡, ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ȣȯ 3¹öư ¸¶¿ì½º°¡ 0x33 ('3')À» Àü¼ÛÇÒ °ÍÀÌ´Ù.
The relative mouse movement is sent as dx (positive means right)
and dy (positive means down). Various mice can operate at different
speeds. To select speeds, cycle through the
speeds 9600, 4800, 2400 and 1200 bit/s, each time writing the two characters
from the table below and waiting 0.1 seconds. The following table shows
available speeds and the strings that select them:
»ó´ëÀûÀÎ ¸¶¿ì½º ¿òÁ÷ÀÓÀº dx (positive means right)
and dy (positive means down)·Î¼ º¸³»Áø´Ù. ´Ù¾çÇÑ ¸¶¿ì½º´Â ´Ù¸¥ ¼Óµµ·Î µ¿ÀÛÇÑ´Ù ¼Óµµ¸¦ ¼±ÅÃÇÏ·Á¸é,
ÃÊ´ç Àü¼Û ¼Óµµ 9600, 4800, 2400 and 1200ºñÆ® Áß ¼±ÅÃÇÒ ¼ö ÀÖ°í, µÎ ¹®ÀÚ¸¦ ÀÛ¼ºÇϴµ¥
¼Óµµ(ºñÆ®/ÃÊ) ¹®ÀÚ¿ | |
|
9600 | *q |
4800 | *p |
2400 | *o |
1200 | *n |
µ¥ÀÌÅÍ ÆÐŶÀÇ Ã¹¹øÂ° ¹ÙÀÌÆ®´Â µ¿±âȸñÀûÀ¸·Î »ç¿ëµÉ ¼ö ÀÖ´Ù.
¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ
¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝÀº 1 ½ºÅ¸Æ® ºñÆ®, 7µ¥ÀÌÅÍ ºñÆ®, ÆÐ¸®Æ¼
ºñÆ®(¾øÀ½), 1 ½ºÅ¾ ºñÆ®¸¦ 1200 ºñÆ®/ÃÊÀÇ ¼Óµµ·Î »ç¿ëÇÑ´Ù. µ¥ÀÌÅÍ´Â 3¹ÙġƮ
ÆÐŶÀ¸·Î RxD·Î Àü¼ÛµÈ´Ù. dx¿Í dy ¿òÁ÷ÀÓµéÀº »óÈ£ º¸¿ÏÀûÀ¸·Î
Àü¼ÛµÇ°í, lb (rb)´Â ¿ÞÂÊ (¿À¸¥ÂÊ) ¹öưÀÌ ´·¯Á³À»¶§ ¼³Á¤µÈ´Ù.
byte | d6 | d5
|
1 | 1 | lb
| rb
| dy7
| dy6
| dx7
| dx6
|
2 | 0 | dx5
| dx4
| dx3
| dx2
| dx1
| dx0
|
3 | 0 | dy5
| dy4
| dy3
| dy2
| dy1
| dy0
|
3-¹öư ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ
¿ø·¡ÀÇ ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ¸¶¿ì½º´Â ¿ÀÁ÷ µÎ°³ÀÇ ¹öưÀ» °®°í ÀÖ´Ù. ÇÏÁö¸¸, ÀϺÎ
¼¼°³ÀÇ ¹öưÀ» °®´Â ¸¶¿ì½ºµé ¿ª½Ã ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝÀ»
»ç¿ëÇÑ´Ù. °¡¿îµ¥ ¹öưÀ» ´©¸£°Å³ª, ÇØÁ¦½ÃÄѳõÀ¸¸é, 0 ¿òÁ÷ÀÓÀ» °®´Â ÆÐŶÀ»
Àü¼ÛÇϰųª ¾Æ¹«·± ¹öưµµ ´·¯ÁöÁö ¾Ê¾Ò´Ù´Â °ÍÀ» ¾Ë¸®´Â ÆÐŶÀÌ º¸°íµÈ´Ù.
(µû¶ó¼ ´Ù¸¥ 2¹öư°ú´Â ´Þ¸®, °¡¿îµ¥ ¹öưÀÇ »óÅ´ °¢ ÆÐŶ³»¿¡¼ º¸°íµÇÁö
¾Ê´Â´Ù. )
·ÎÁöÅØ ÇÁ·ÎÅäÄÝ
·ÎÁöÅØ ½Ã¸®¾ó 3¹öư ¸¶¿ì½º´Â ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝÀÇ ´Ù¸¥ È®ÀåÀ»
»ç¿ëÇÑ´Ù. °¡¿îµ¥ ¹öưÀÌ À§¸¦ ÇâÇϸé, 3¹ÙÀÌÆ® ÆÐŶÀÌ Àü¼ÛµÈ´Ù. °¡¿îµ¥
¹öưÀÌ ¾Æ·¡¸¦ ÇâÇϸé, 4¹ÙÀÌÆ®ÀÇ ÆÐŶÀÌ Àü¼ÛµÇ°í, 4¹øÂ° ¹ÙÀÌÆ®´Â
0x20(ȤÀº ÃÖ¼ÒÇÑ 0x20ºñÆ®·Î ¼³Á¤µÇµµ·Ï ÇÔ) °ªÀ» Áö´Ñ´Ù. ƯÈ÷, ´Ù¸¥
³ª¸ÓÁö ¹öưµéÀÌ ¾Æ·¡¸¦ ÇâÇÒ¶§, °¡¿îµ¥ ¹öưÀ» ´©¸£¸é, 0,0,0,0x20À¸·Î
º¸°íµÈ´Ù.
¸¶¿ì½º½Ã½ºÅÛ ÇÁ·ÎÅäÄÝ
Mousesystems ÇÁ·ÎÅäÄÝÀº 1200ºñÆ®/ÃÊÀÇ ¼Óµµ·Î 1 ½ºÅ¸Æ® ºñÆ®, no
ÆÐ¸®Æ¼ ºñÆ®, 2 ½ºÅé ºñÆ®¸¦ ?´? µ¥ÀÌÅÍ´Â 5¹ÙÀÌÆ® ÆÐŶ³»¿¡ RxD·Î
º¸³»Áø´Ù. dx´Â µÎ°³ÀÇ º¸¿ÏÀûÀÎ °ªÀÇ ÇÕ°è·Î¼ Àü¼ÛµÇ°í, fIdy´Â
µÎ°³ÀÇ º¸¿ÏÀûÀÎ °ªµéÀÇ µÎ°³ÀÇ ÇÕ°èÀÇ ¹«È¿¸¦ Àü¼ÛÇÑ´Ù. lb (mb,
rb)Àº ¿ÞÂÊ(°¡¿îµ¥, ¿À¸¥ÂÊ) ¹öưÀÌ ´·¯Á³À»¶§ ¼Ò°ÅµÈ´Ù.
byte | d7 | d6
|
1 | 1 | 0
| 0
| 0
| 0
| lb
| mb
| rb
|
2 | 0 | dxa6
| dxa5
| dxa4
| dxa3
| dxa2
| dxa1
| dxa0
|
3 | 0 | dya6
| dya5
| dya4
| dya3
| dya2
| dya1
| dya0
|
4 | 0 | dxb6
| dxb5
| dxb4
| dxb3
| dxb2
| dxb1
| dxb0
|
5 | 0 | dyb6
| dyb5
| dyb4
| dyb3
| dyb2
| dyb1
| dyb0
|
¹ÙÀÌÆ® 4¿Í 5´Â ¹ÙÀÌÆ® 2¿Í 3ÀÌ Àü¼ÛµÈ ÈĺÎÅÍ ¹ß»ýÇÑ º¯°æ¿¡ ´ëÇØ ¼³¸íÇÑ´Ù.
½ã ÇÁ·ÎÅäÄÝ(Sun protocol)
The Sun ÇÁ·ÎÅäÄÝÀº À§ÀÇ 5¹ÙÀÌÆ® ¸¶¿ì½º ½Ã½ºÅÛ ÇÁ·ÎÅäÄÝÀÇ 3¹ÙÀÌÆ®
¹öÀüÀÌ´Ù. ¸¶Áö¸· 2 ¹ÙÀÌÆ®´Â Àü¼ÛµÇÁö ¾Ê´Â´Ù.
MM ÇÁ·ÎÅäÄÝ
The MM ÇÁ·ÎÅäÄÝÀº 1200 ºñÆ®/ÃÊÀÇ ¼Óµµ·Î 1 ½ÃÀÛ ºñÆ®, 8 µ¥ÀÌÅÍ
ºñÆ®,Ãß°¡ ÆÐ¸®Æ¼ ºñÆ® ±×¸®°í Á¤Áö ºñÆ®¸¦ »ç¿ëÇÑ´Ù.
µ¥ÀÌÅÍ´Â 3¹ÙÀÌÆ® ÆÐŶÀ¸·Î RxD¿¡ Àü¼ÛµÈ´Ù.dx¿Í dy´Â ´ÜÀÏ signed
°ªÀ¸·Î Àü´ÞµÇ¸ç, »çÀÎ ºñÆ®´Â À½¼ö°ªÀ¸·Î ÁöÁ¤µÈ´Ù. lb (mb,
rb)´Â ¿ÞÂÊ(°¡¿îµ¥, ¿À¸¥ÂÊ)¹öưÀÌ ´·ÁÁ³À»¶§, ¼³Á¤µÈ´Ù.
byte | d7 | d6
|
1 | 1 | 0
| 0
| dxs
| dys
| lb
| mb
| rb
|
2 | 0 | dx6
| dx5
| dx4
| dx3
| dx2
| dx1
| dx0
|
3 | 0 | dy6
| dy5
| dy4
| dy3
| dy2
| dy1
| dy0
|
FILES
- /dev/mouse
-
ÀϹÝÀûÀ¸·Î »ç¿ëµÇ´Â ½Éº¼¸¯ ¸µÅ©·Î¼, ¸¶¿ì½º ÀåÄ¡¸¦ °¡¸®Å²´Ù.
SEE ALSO
ttys(4),
gpm(8)
Index
- NAME
-
- CONFIG
-
- DESCRIPTION
-
- Introduction
-
- ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ
-
- 3-¹öư ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® ÇÁ·ÎÅäÄÝ
-
- ·ÎÁöÅØ ÇÁ·ÎÅäÄÝ
-
- ¸¶¿ì½º½Ã½ºÅÛ ÇÁ·ÎÅäÄÝ
-
- ½ã ÇÁ·ÎÅäÄÝ(Sun protocol)
-
- MM ÇÁ·ÎÅäÄÝ
-
- FILES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:01 GMT, March 25, 2004