home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 8 / boot-disc-1997-04.iso / PDA_Soft / Psion / utils / Mouse / MAUS.DOC < prev    next >
Text File  |  1994-02-03  |  3KB  |  73 lines

  1. The mouse and the Psion Series 3(a) .. by Marko Schuster 1993
  2. -------------------------------------------------------------
  3.  
  4. (Translated into english in 1994)
  5.  
  6. Files in Archive: (files are german words..)
  7. Maus3.*      - Example for Series3
  8. Maus3a.*     - Example for Series3a
  9. Kreuz.pic    - Sprite for S3a, must be in M:\pic\sprites (see Maus3a.opl!)
  10.  
  11. Note to the prg: drawing by pressing the left mouse-button
  12.  
  13. A mouse on the S3? This should work? Of course.. Of course the prg. must
  14. be programmed to accept a mouse as input. That means, you can only
  15. use a mouse if a programmer writes his prg. so that you can use the
  16. mouse. Assembler-hackers may try to get into the system-keyboard-interrupt
  17. and make a prg. to emulate the cursor-keys for example and so be able
  18. to use the mouse in all applications (mousebuttons may be ESC/MENU/ENTER..)
  19.  
  20. The mouse .. it must be a serial PC-mouse. Mouses for Amiga/C64/Atari/..
  21. will not work. To use a mouse, it must be connected with the serial
  22. link of the S3(a). But between both you need a (null)modem-adapter
  23. (changes SD&RD, DTR&DSR, RTS&CTS). An other solution is to make your
  24. own cable or to change the pins directly on the S3-Link-cable (for example,
  25. i have cut the 9pin-connector and have made a 9pin-connecter which i can
  26. directly connect with my mouse. Note if you do this: be sure that the
  27. other connector is NOT connected to your PC! It wouldn't work.. if
  28. all Serial links have the same colors on their pins, such a new 9pin-
  29. connecter must be make as followed:
  30. Pin Color
  31.  1  empty
  32.  2  brown
  33.  3  red
  34.  4  black
  35.  5  blue & shield
  36.  6  green
  37.  7  yellow
  38.  8  orange
  39.  9  empty
  40.  
  41. !! I make no warranty if this is correct. I make no warrenty if you damage
  42. your PSION !!
  43.  
  44. The problem:
  45. A serial mouse works with 1200 Baud, so we must open the serial with
  46. 1200 Baud. 2. There seems to be different mouses. I have an Amiga and a
  47. PC-Card, so i don't know much about PC-mouses, but on my mouse i can
  48. choose between "2-buttons (Microsoft-Mouse)" and "3-buttons (Mouse System-
  49. Mouse)". All informations I know are related to the last one! You must have
  50. a 3-button-mouse if you want to try my prgs.!
  51. Actually I don't know how to check if there is a char on the serial port,
  52. so the prg. cannot get keypresses/events if it waits for an input on
  53. the serial port !!
  54. The mouse sends for each movement 5 Bytes. Each movement may contain
  55. more pixels & more directions. The movements are in the last 4 Bytes,
  56. in the first byte is the status of the mouse-buttons. These codes
  57. (all decimal!) can be found at the first byte:
  58.  
  59. 128 : all mouse buttons pressed
  60. 129 : left and middle button pressed
  61. 130 : left and right pressed
  62. 131 : left pressed
  63. 132 : middle and right pressed
  64. 133 : middle pressed
  65. 134 : right pressed
  66. 135 : no button pressed
  67.  
  68. Directions&Movements: look in the OPL-Source for these informations.
  69.  
  70. ..written by .. Marko Schuster 12/93, translated to english 2/94
  71. EMAIL to: ns103@fim.uni-erlangen.de
  72.  
  73.