🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2492

tricks for using gameport unit 1??

#2492
From: Frank J. Edwards
Date: Sat, 02 Dec 1989 04:32
27 lines
1620 bytes
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
Technical Details
Message-ID: <215@ckctpa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!pdn!boake2!ckctpa

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!pdn!boake2!ckctpa
From: crash@ckctpa.UUCP (Frank J. Edwards)
Newsgroups: comp.sys.amiga.tech
Subject: tricks for using gameport unit 1??
Summary: is there something special to make the ABSJOYSTK work?
Message-ID: <215@ckctpa.UUCP>
Date: 2 Dec 89 04:32:28 GMT
Reply-To: crash@ckctpa
Organization: ComputerKnowledge Corp, Clearwater FL
Lines: 27