I’m Giovani Chaves, a brazilian student finishing my Computer Science university.
I have to build a final job to my graduation, and decided to develop an USB gadget.
It consists in a motor vibrating chair to simulate the same ForceFeedback effect of the steering wheel on the driver’s chair at racing games.
The problem is: games accept only 1 controller, so if I build the chair using a 05h USB device class (a ForceFeedback capable controller), the player is unable to use the wheel, he have to choose between the chair controller or the wheel controller at config.
Then, I found out that I can hook some code to the DirectInput to detect ForceFeedback events sent to the wheel to trigger the vibration on my chair controller. It’ll be a HID class USB device. This way, I could watch for ForceFeedback events directly on dinput.dll and then trigger my device using libUSB as a device driver.
I can’t even realize how to start a hook on dinput.dll, and which method I could use to achieve this mission.
I’m a PHP programmer, know a bit C++ and some Java.
Searching for articles to help, I stumbled on your code at http://www.gamedev.net/community/forums/topic.asp?topic_id=371104
I tried to realize how it can be useful to my project, but since I’m not as experienced as you, I was unable to visualize solutions.
Hope you could help me!