Mail Archives: djgpp/1995/08/01/19:24:14
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1296
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!ncar!noao!CS.Arizona.EDU!news.Arizona.EDU!usenet
|
From: | fitz AT argus DOT lpl DOT arizona DOT edu (Mike Fitzgibbon)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Joy-oh-joysticks
|
Date: | 1 Aug 1995 17:20:33 GMT
|
Organization: | University of Arizona, LPL
|
Lines: | 25
|
Distribution: | world
|
References: | <3vkulc$jri AT fileserv DOT aber DOT ac DOT uk>
|
Nntp-Posting-Host: | babel.lpl.arizona.edu
|
Keywords: | Joysticks, djgpp, large yellow bananananas
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
In article <3vkulc$jri AT fileserv DOT aber DOT ac DOT uk>, ngh94 AT aber DOT ac DOT uk says...
>
>Dear All,
> Why is it the simplest things cause me grief, whereas writing
>complex routines takes me 20 minutes and they work 2nd go?
>
> Just sussing out how to read the joystick, should be easy enough,
>do some "stuff" with the "bits" in 0x0201 I thought (based on PCGPE). No
>such bloody luck. When I do an inport the value I get only changes when
>I press ctrl on the keyboard, nothing from the joystick. I was only doing
>a quick check for the fire buttons, not worrying about directions to start
>with (ha should take 3 mins I thought, HA).
>
> Could somebody please point out my incredibly stupid
>mistake?Posting here not r.g.p as there may be some difference with DJGPP
>although I have no idea what that could be.
>
> Nigel "I'm not even worth flaming" Hughes
I am not sure, but you may need to output to the port (0x201) first to fire
the one-shots. For a code example (rather old) see the Sargent/Shoemaker book
"The IBM Personal Computer from the Inside Out" (c) 1984 Addison-Wesley, ISBN
0-201-06896-6. I am sure more recent example must also be availible.
Good Luck.
- Raw text -