Hiya, I need a solution into reading the game pad/joystick port.. Ive made a device which detects the heartbeat off of who ever is using the device, and i need to get this information into an application.. How can this be done??
------------------
Pulse Detection -- Pulse I/O -- To Computer via Game Port
------------------
My idea so far is, i use the joystick port to send in the data through the pin number 2 (button 1 of a joystick) into the application, but so far i have met the problem of reading from the game port.. If anyone knows how i can do this, please share it with me.. Im desperate!!
Could it be possible for me to make a driver like other game pads/sticks, if so, how do i do this??
Thankyou so much
Michael King
Need urgent help!!!!
Normal users can make a post sticky? Hmm, that's odd. I don't think this needs to be sticky ---- admins?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
-
Road Runner
- User

- Posts: 48
- Joined: Tue Oct 07, 2003 3:10 pm
use inline ASM?
the variable joy now contains the state of the joystick buttons.
Don't put -5V on the pin, you'll break it. It's intended to be used by shorting the pin to ground but, if you need to drive it with a logic chip, use TTL or CMOS and have +5v for not closed and drive it to 0V to indicate a pulse. Better still, use an open collector or open drain logic device.
Code: Select all
REM $201 is the joystick port
joy.w
mov dx,$201
in al,dx
mov joy,axDon't put -5V on the pin, you'll break it. It's intended to be used by shorting the pin to ground but, if you need to drive it with a logic chip, use TTL or CMOS and have +5v for not closed and drive it to 0V to indicate a pulse. Better still, use an open collector or open drain logic device.
Last edited by Road Runner on Fri Oct 17, 2003 12:55 am, edited 1 time in total.

