- Subscribe to RSS Feed
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Interfacin g Dual Action Controller to PC using Windows
I am writing a simulator for the F16 radar on a Pc using Borland Turbo C++ and am trying to use the Dual Action Controller for the throttle and side stick controller. I enumerate the devices using window call SetupDiGetDeviceInterfaceDetail and get the device path "\\\\?\\usb#vid_046d&pid_c216#5&2723be6e&0&1#{a5dc
Is there a simple snippet of C++ code using Windows calls that I can use that does work with the controller?
side stick controller. I enumerate the devices using window call SetupDiGetDeviceInterfaceDetail and get the device path "\\\\?\\usb#vid_046d&pid_c216#5&2723be6e&0&1#{a5dc
Is there a simple snippet of C++ code using Windows calls that I can use that does work with the controller?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Interfacin g Dual Action Controller to PC using Windows
You could avoid all the SetupDi headache by using DirectInput (check Google for DirectInput8). It's the normal way that apps use to access game controllers and abstracts all the details away.
If, for whatever reason, you want to stay with the Setup API enumeration and direct CreateFile, you should look at HID samples. Your path seems to suggest you are enumerating the USB devices; however, for your application, you should be looking at the HID devices (different Device Interface GUID). Perhaps you should give Jan's HID page a look-over, she's got tons of good stuff including sample code.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
