public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike McCarty <Mike.McCarty@sbcglobal.net>
To: JD Fenech <jd.fenech@gmail.com>
Cc: linux-msdos@vger.kernel.org
Subject: Re: Dosemu and Joysticks
Date: Tue, 29 Apr 2008 02:06:48 -0500	[thread overview]
Message-ID: <4816C908.8020606@sbcglobal.net> (raw)
In-Reply-To: <4816BF6E.5060205@gmail.com>

JD Fenech wrote:
> Background:
> I have a PS1 controller connected to my PC via USB. I know it works, 
> because I'm able to read data from /dev/input/js0 and actually use this 
> in several native linux games.

The joystick ports are 0200H and 0201H, IIRC. Using debug, you can
read 0201H (- i 201) and see whether pressing and releasing buttons
changes the bits read. IIRC, reading 0200H "triggers" the timers on the
joystick port. You can't type the commands fast enough to do an input
on the port and see this, but you can write a little program which
does that, then watches port 0200H and prints counts of how long it
took the first bit to change, the second, and so on.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!

  reply	other threads:[~2008-04-29  7:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29  6:25 Dosemu and Joysticks JD Fenech
2008-04-29  7:06 ` Mike McCarty [this message]
2008-04-29  7:20 ` Mike McCarty
2008-04-29  8:07 ` Mike McCarty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4816C908.8020606@sbcglobal.net \
    --to=mike.mccarty@sbcglobal.net \
    --cc=jd.fenech@gmail.com \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox