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