Path: utzoo!mnetor!uunet!nuchat!peter From: peter@nuchat.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: Joysticks in BOTH ports? Message-ID: <619@nuchat.UUCP> Date: 4 Feb 88 01:22:06 GMT References: <8801212049.AA04709@jade.berkeley.edu> Organization: Public Access - Houston, Tx Lines: 32 In article <8801212049.AA04709@jade.berkeley.edu>, FATXC@USU.BITNET writes: > Does anyone have a good example of how to use BOTH ports as > joystick ports? (Normal Amiga joysticks, not porportional). I would > like to be able to use Intuition as well, if that is possible. I am > using an Amiga 1000, if it makes any difference. > Any information, reference to an existing PD example or other > would be greatly appreciated. I posted this recently, but basically you: Open game port 0 Read trigger conditions and save them. Close game port 0. Open the input device. Send the SETMPORT message to set it to (say) port 2. Close the input device. Do whatever you want with the joystick ports. Open the input device. Send SETMPORT to set it back to port 0. Send SETMTYPE to set it back to GPCT_MOUSE. Send SETMTRIG to the saved trigger conditions. Close the input device. You really have to open and close the ports, and in that order. Otherwise it doesn't work. No, I don't know why. -- -- a clone of Peter (have you hugged your wolf today) da Silva `-_-' -- normally ...!hoptoad!academ!uhnix1!sugar!peter U -- Disclaimer: These aren't mere opinions... these are *values*.