home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FAQSYS18.ZIP / FAQS.DAT / MOUSE_HW.TXT < prev    next >
Internet Message Format  |  1995-08-09  |  3KB

  1. From: Tomi Engdahl <then@snakemail.hut.fi>
  2. Date: Fri, 29 Apr 1994 13:28:37 +0200 (EET DST)
  3.  
  4.  
  5. T{ss{ hiirien speksit englanniksi. Ei nyt ihan t{ydelliset, mutta kyll{
  6. aika kattavat. 
  7.  
  8.  
  9.         Serial mouse
  10.  
  11. Voltage levels:
  12. Mouse takes standard RS-232C output signals (+-12V) as its input signals.
  13. Those outputs are in +12V when mouse is operated. Mouse takes some current
  14. >from each of the RS-232C port output lines it is connected (about 10mA).
  15. Mouse send data to computer in levels that RS-232C receiver chip in the 
  16. computer can uderstand as RS-232C input levels. Mouse outputs are normally
  17. something like +-5V, 0..5V or sometimes +-12V. Mouse electronics
  18. normally use +5V voltage.
  19.  
  20.  
  21.         Microsoft serial mouse
  22.  
  23. Pins used:
  24. TD, RTS and DTR are used only as power source for the mouse.
  25. RD is used to receive data from mouse.
  26.  
  27. Serial data parameters: 1200bps, 7 databits, 1 stop-bit
  28.  
  29. Data packet format: 
  30. Data packet is 3 byte packet. It is send to the computer every time
  31. mouse state changes (mouse moves or keys are pressed/released).
  32.  
  33.         D7      D6      D5      D4      D3      D2      D1      D0
  34.  
  35. 1.      X       1       LB      RB      Y7      Y6      X7      X6
  36. 2.      X       0       X5      X4      X3      X2      X1      X0      
  37. 3.      X       0       Y5      Y4      Y3      Y2      Y1      Y0
  38.  
  39. The byte marked with 1. is send first, then the others. The bit D6
  40. in the first byte is used for syncronizing the software to mouse
  41. packets if it goes out of sync.
  42.  
  43. LB is the state of the left button (0 means pressed down)
  44. RB is the state of the right button (0 means pressed down)
  45. X7-X0 movement in X direction since last packet (signed byte)
  46. Y7-Y0 movement in Y direction since last packet (signed byte)
  47.  
  48.  
  49.         Mouse systems mouse            
  50.  
  51. Serial data parameters: 1200bps, 8 databits, 1 stop-bit
  52.  
  53. The data is sent in 5 byte packets in following format:
  54.  
  55.         D7      D6      D5      D4      D3      D2      D1      D0
  56.  
  57. 1.      1       0       0       0       0       LB      CB      RB
  58. 2.      X7      X6      X5      X4      X3      X2      X1      X0
  59. 3.      Y7      Y6      Y5      Y4      Y3      Y4      Y1      Y0
  60. 4.      
  61. 5.
  62.  
  63. LB is left button state (0=pressed, 1=released)
  64. CB is center button state (0=pressed, 1=released)
  65. RB is right button state (0=pressed, 1=released)
  66. X7-X0 movement in X direction since last packet in signed byte 
  67.       format (-128..+127), positive direction right
  68. Y7-Y0 movement in Y direction since last packet in signed byte 
  69.       format (-128..+127), positive direction up
  70.  
  71. The last two bytes in the packet (bytes 4 and 5) contains
  72. information about movement data send in last packet. I have not
  73. found exact information about those bytes. I have not also found
  74. any use for such a information (maybe it is for syncronization 
  75. or something like that).
  76.  
  77.  
  78.  
  79.  
  80.  
  81. -- 
  82. Tomi.Engdahl@hut.fi                        Helsinki University of Technology
  83. G=Tomi S=Engdahl O=hut ADMD=fumail C=fi    Department of Computer Science
  84. # This text is provided "as is" without any express or implied warranty #
  85.  
  86.  
  87.