home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
hard
/
sermouse-2.0.lha
/
SerMouse
/
SerMouse.Doc
< prev
next >
Wrap
Text File
|
1994-09-20
|
7KB
|
205 lines
Welcome to:
\ | /
- The ultimate PC-Mouse package -
/ | \
A lot of people don't like the standard Amiga mouse (and I don't blame 'm).
And if they do like him (I like to 'personalize' my mouse) he (she?) dies
within a short period of time. The market for specific Amiga mice is very
small. Most people like the PC mice and trackballs. I 'm using a PC mouse
of Q-tec, after my Amiga mouse died some years ago. To make it a bit easier
for people to use PC mice and trackballs on the Amiga, I decided to write
this packadge for the use of PC-mice on the Amiga. It contains the
following things (in this doc or the archive):
* A serial mouse driver for both Microsoft mice and Mouse System mice.
* A description for converting 9-pin Sub-D serial to 25-pin serial.
* A description for converting 9-pin Sub-D BUS-mouse to 9-pin Amiga
mouse.
* A description for converting 9-pin Mini-Din BUS-mouse to 9-pin Amiga
mouse.
The SerialMouse-driver
----------------------
The SerialMouse-driver is called "SerMouse" and should be included in this
package. It can only be used with Kickstart version 2.0 or above. You can
start it from the command-line by typing "SerMouse" or from the WorkBench
by double-clicking on it's icon. To deactivate it, just restart the
program. If you want to activate it every time your computer is switched
on, add the command in your s:user-startup or drag the icon to the
WBStartup drawer (do not remove the DONOTWAIT tooltype!).
You can specify the following things either as command-line argument or as
icon tooltype:
3BYTES or 5BYTES
This indicates the mouse-type you're using. 5BYTES is the default and most
used type. If you've got a 3-button mouse, it's deffenetely a 5BYTES type.
If the mouse doesn't work, just try the other type... I named the types
by the number of bytes they sent for one event.
DEVICE
The device to be used for reading serial data. Default is the
serial.device. SerMouse has been tested with the VECTOR Connection multi
I/O card and it worked without any problems.
UNIT
The device-unit to be used for reading serial data. Default is unit 0.
Also tested with the VECTOR board.
PRIORITY
This is the task-priority of the mouse-driver. The default is 20. This
should be OK. It's the same priority as the input.device eg. the standard
mouse.
The program SerMouse is (c) by me (K.P. van Beem) and is distributed as
FreeWare. This means, you may freely use and distribute it, as long as the
programm and this documentation is left unchanged. The source of the
programm is available as GiftWare. Contact me if you're interested in it.
It's partly C and partly assembler.
Converting 9-pin Sub-D serial to 25-pin serial
----------------------------------------------
Most serial mice do have a 9-pin Sub-D serial connector (that's the two-row
connector, NOT a din!). The Amiga has a 25-pin serial connector. In most
stores, you can by adapters from 9 to 25 pins. For those who want to build
them in stead of by them, or just want to connect a 25-pin connector
directly to the wire, this is how you should connect it (the pin-numbers
are normally written on the connectors):
9-pin 25-pin
D-Sub D-Sub
1 <==> 8 Carrier Detect
2 <==> 3 Recieve
3 <==> 2 Transmit
4 <==> 20 Data Terminal Ready
5 <==> 7 Signal Ground
6 <==> 6 Data Set Ready
7 <==> 4 Request To Send
8 <==> 5 Clear To Send
9 <==> 22 Ring indicator
And don't forget the shield-ground.
Converting 9-pin Sub-D BUS-mouse to 9-pin Amiga mouse
-----------------------------------------------------
Besides serial mice, there's an other type of mouse that is used for the
PC. Although not often these days. It's called the BUS-mouse. It's basicly
the same mouse as the Amiga (and the Atari) is using, but differently
wired. You can easily rewire the mouse (or make an adapter) and connect the
mouse on the mouse-port of the Amiga, just like you do with your standard
Amiga mouse. This way, you can use this type of mouse without a separate
driver. This is the way I use my PC mouse on the Amiga. You should rewire
the mouse as described below:
Amiga side Mouse side
D-Sub D-Sub
5 4 3 2 1 5 4 3 2 1
9 8 7 6 9 8 7 6
1 <==> 4 Vertical pulse
2 <==> 1 Horizontal pulse
3 <==> 3 Vertical pulse Qualifier
4 <==> 2 Horizontal pulse Qualifier
5 <==> 5 Midle button
6 <==> 6 Left button
7 <==> 7 +5V
8 <==> 8 Ground
9 <==> 9 Right button
Converting 9-pin Mini-Din BUS-mouse to 9-pin Amiga mouse
--------------------------------------------------------
For a description of the BUS mouse, see above. Besides the Sub-D plug, most
modern computers do have a mini-Din to connect the bus-mouse to the
computer. Of cause, these can also be rewired. Belose is described how. I
haven't tested this, but I took it from a German magazin.
Mouse Amiga
Mini-DIN D-SUB
1 <==> 7 +5V
2 <==> 2 Horizontal pulse
3 <==> 4 Horizontal pulse Qualifier
4 <==> 1 Vertical pulse
5 <==> 3 Vertical pulse Qualifier
6 <==> 6 Left button
7 <==> 5 Middle button
8 <==> 9 Right button
9 <==> 8 GND
I'm not sure the pin-nubers are written on the Mini-Din, besides, if you
don't make an adapter but just rewire it, you won't have the bus. So I'l
give the numbers here. You are looking at the soldier side of the bus, so
at the pin-side of the plug!
|__|
7 8 9
3 4 5 6
__ 1 2 __
| |
Credits
-------
I want to thank the following people (in alphabetical order) who helped me
with this mice stuff:
Marcel Duyn, who lent me a serial mouse for testing the driver.
Stefan Johannesdal, who tested the 5BYTES part of the driver.
Christian Stieber, who provided me with some technical info about the
5BYTES serial mouse protocol.
For questions, suggestions or bug-reports, you can always reach me at the
adresses below.
Have fun! (Easy, 'cause you own an Amiga!)
_ _ _
/_) /_) __// Hobby programmer... Fido: 2:280/464.2
/ atrick van /_)eem \X/ e-mail: patrick.van.beem@aobh.xs4all.nl
Postal address: Parlevinker 5
2152 LC Nieuw-Vennep
The Netherlands