[comp.sys.amiga.tech] tricks for using gameport unit 1??

crash@ckctpa.UUCP (Frank J. Edwards) (12/02/89)

This one is for all you hackers writing code to make use of the
joysticks...  I've written code using the code in the (orig) RKM:
Lib & Dev as an outline.  [Note that I said "outline" -- seems to
me that there joystick example shouldn't work.  But then, neither
does mine :-]

I'm creating the MsgPort and IOStdReq structures.  Then OpenDevice()
the "gameport.device", unit 1.  Then GPD_SETCTYPE to be the absolute
joystick and set the trigger conditions (what, exactly, should these
be for a joystick?).  I queue a READEVENT using SendIO(), but I never
get a signal back!  I issue a Wait() call using the IDCMP CLOSEWINDOW
signal mask or'd with the gameport's signal mask.  The only time
the Wait() returns is when I select the CLOSEWINDOW gadget.

Can anyone point out the error(s) I've made?  Please??

I need a response via e-mail since I can't/don't read the news on
a regular basis.

advTHANKSance!!

PS:  If no one answers, I'm not going give Fred Fish my port of the
     C-News package for the Amiga -- so there!!  [Actually, that's
     a lie, but I'd still like an answer ;-]
--
Frank J. Edwards			Phone:  (813) 786-3675
	Email:  ...!uunet!pdn!boake2!ckctpa!crash