sabrE7
asked on
Game Port programming
Does anyone know where I can find some good example code for reading a joystick input through the PC game port?
I have a SideWinder 3D pro, I need to be able read the up/down and left/right movement as well as when the fire button is pressed. I know how to access the game port using ioperm(), I just would like to look at some example's to get some ideas.
I am writing the application in C, then I will be writing a basic Qt GUI to display the results.
I have a SideWinder 3D pro, I need to be able read the up/down and left/right movement as well as when the fire button is pressed. I know how to access the game port using ioperm(), I just would like to look at some example's to get some ideas.
I am writing the application in C, then I will be writing a basic Qt GUI to display the results.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use libsdl, I fixed a few joystick problems in libsdl a few years ago, and I can tell you: You don't want to program the joystick directly :-) So take David's advice and learn about how to use libsdl.