Re: Opening Devices & Joystick Input
- Posted by DanM Feb 18, 2009
- 1009 views
Hey Guys,
I know you can use the open command to open files and devices, but I was wondering how you would get a device from the USB port, like if you had a USB joystick, how would you get data from the device and stuff? I know you use the open command, but I'm not sure how to go about it. Any help? Example code would be nice.
A look in the archives under "joystick" yields:
http://www.rapideuphoria.com/winjoy.zip
I know I've used a USB joystick in an app, but I don't think it was the above lib that I used; it's possible that there might be a demo from Win32Lib that also lets you use USB joystick, I'm not sure. But give the above a try & see if it lets you do what you want. If not, let us know & I'll look for what I did, don't know where it is right now though.
It is, btw, always a good bet to look first in the archives
Dan