How to write a program to define a gamepad and use it?

Status
Not open for further replies.

Navid T

Full Member level 3
Joined
Jan 21, 2005
Messages
186
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
Iran
Activity points
1,385
avr usb steering wheel

Hi
I'm going to make an advanced pc steering wheel, but i don't know whats protocol of this, and how can i write a program to define a gamepad and use it in games. can you give me some information about it? or some links and samples please??
Best regards
 

Computer Steering Wheel

The protocol is either USB HID class, or none at all.
In the former case You will have to implement an USB protocol device.
http://www.usb.org/developers/hidpage/
http://en.wikipedia.org/wiki/USB_Human_Interface_Device_class
This could be done even without a specialized USB controller, a firmware-only driver and an AVR microcontroller are enough:
http://www.sensorwiki.org/index.php/Building_a_USB_sensor_interface
I saw a few AVR based joystick/steering wheel projects on the net, just google a bit, You should find something that will fit Your needs.

The latter case is simply a potentiometer connected do PC's game port.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…