From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McCarty Subject: Re: Dosemu and Joysticks Date: Tue, 29 Apr 2008 02:06:48 -0500 Message-ID: <4816C908.8020606@sbcglobal.net> References: <4816BF6E.5060205@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4816BF6E.5060205@gmail.com> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: JD Fenech Cc: linux-msdos@vger.kernel.org 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!