delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/22/14:30:25

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reading Joystick port
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <ari4lssp4ptou3f09n9ra3rrlj8n9sm3bc@4ax.com>
References: <39503918 DOT DA19A551 AT pacific DOT net DOT au>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 23
X-Trace: /Kp2lrkYtZBl8t5peonTTyZI3RuhI0UeSxiHNa+rhSkHose0YXTApFREcyF/5LtEMLsQzgKqtLVw!mHEo2fhLSYabiVfEmtbnT4Dy5k4ObAhtU2yrxuI8w0FZ5jCiqVdhBkrQloTl9kSCQs1Q+rthcOb8!W3+U
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 22 Jun 2000 18:29:47 GMT
Distribution: world
Date: Thu, 22 Jun 2000 18:29:47 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 21 Jun 2000 13:40:08 +1000, Peter M <peterem AT pacific DOT net DOT au>
wrote:

>The code inportb(0x201) will correctly work when running under as a DOS
>box in W98, but when I reboot to DOS from W98, it fails to read the
>status and continually returns 0xFF.  The only possible solution I have
>seen is a reference to writing out to the port before reading it (though
>I suspect that this just to prep the positional controllers), but this
>did not work.

Could also be that your joystick may be compatible only with Microsoft
DirectInput, and that Windows is emulating the joystick port.

From what I've heard, you're supposed to write 1's to all directional
bits you're going to read and then write 0's to those same bits.

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019