[comp.sys.amiga] Need help with Joystick/Mouse switchbox...

andrew@aucis.UUCP (Andrew Gillham) (09/20/89)

A friend of mine is trying to build a switchbox to switch the mouse and
Joystick on port 1.

He is having trouble and I wonder if anyone knows exactly what lines need
to be switched?  (other than all, of course)

thanks!!

-Andrew


-- 
Andrew Gillham              | andrew%aucis.uucp@mailgw.cc.umich.edu or
Andrews University          | sharkey!aucis!andrew
Berrien Springs, MI. USA!   | Signature?  Who said I could write?

kevin@cbmvax.UUCP (Kevin Klop) (09/20/89)

In article <508@aucis.UUCP> andrew@aucis.UUCP (Andrew Gillham) writes:
>A friend of mine is trying to build a switchbox to switch the mouse and
>Joystick on port 1.
>
>He is having trouble and I wonder if anyone knows exactly what lines need
>to be switched?  (other than all, of course)
>
>thanks!!
>
>-Andrew


Okay, for a microswitch joystick/mouse, here are the lines that need
to be switched:

      Pin              Meaning on Joystick
       1                Forward
       2                Back
       3                Left
       4                Right

(All other pins should go to BOTH devices)

(The other pins used are Pin 6 [Button 1 for mouse and Joystick], Pin 7
 [+5 Volt], Pin 8 [Ground], Pin 9 [Button 2])

For an analog joystick,

       Pin            Meaning on Joystick
        3                Button 1
        4                Button 2
        5                POT X
        9                POT Y

All other bins should go to both devices.

                     (Taken from the Hardware Reference manual page 8-8)

                    -- Kevin --

-----
Kevin Klop		{uunet|rutgers|amiga}!cbmvax!kevin
Commodore-Amiga, Inc.

The number, 111-111-1111 has been changed.  The new number is:
134-253-2452-243556-678893-3567875645434-4456789432576-385972

Disclaimer: _I_ don't know what I said, much less my employer.

blgardne@esunix.UUCP (Blaine Gardner) (09/21/89)

From article <7955@cbmvax.UUCP>, by kevin@cbmvax.UUCP (Kevin Klop):
> In article <508@aucis.UUCP> andrew@aucis.UUCP (Andrew Gillham) writes:
>>A friend of mine is trying to build a switchbox to switch the mouse and
>>Joystick on port 1.
> [Lots of pinouts deleted.]

What about just switching power and ground? Since the joystick switches
are all wired from their output to ground, opening the ground lead will
completely disable it. The mouse requires both power and ground, so
opening those two will disable it.

There is one possible problem with this idea though. Does an unpowered
mouse put enough drain on any of the lines to activate them? Since a
DPDT (double-pole, double-throw) switch is cheap, it might be worth a
try.

But what I'd really suggest is buying a DB-9 switchbox. A number of
places that advertize in Computer Shopper sell them, some quite cheaply
too. 


-- 
Blaine Gardner @ Evans & Sutherland    580 Arapeen Drive, SLC, Utah 84108
Here: utah-cs!esunix!blgardne   {ucbvax,allegra,decvax}!decwrl!esunix!blgardne
There: uunet!iconsys!caeco!i-core!worsel!blaine  (My Amiga running uucp)
"Nobody will ever need more than 64K."    "Nobody needs multitasking on a PC."

FelineGrace@cup.portal.com (Dana B Bourgeois) (09/24/89)

Here is a similar problem.  I have my A1000 stuck in a rather tight
location and need several right angle DB2 plugs(like the mouse).

Anybody know a source for the housings?  I can get about 4 styles of 
straight housings and solder cup plugs are easy to find but I haven't
seen ANY right angle housings for DB connectors of ANY size.

I could just make a mold and pot the thing but would prefer to use a
commercial housing.  

Dana 
FelineGrace @ cup.portal.com