Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


multiple usb gamepads...

This topic is 5174 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I initialize and use mutliple gamepads with directx ? I glanced at the SDK but the joystick example only initalized one gamepad, and I had difficulty deciphering the other examples. Thanks, Nitzan

Share this post

Link to post
Share on other sites
Enumerate all DI devices, determine if they are gamepads by looking at the dwDevType member of the DIDEVICEINSTANCE structure you have from the enumeration callback parameter.
Then, create the devices as needed, using the GUIDs also available from that structure.
It is good practice to make a list of the enumeration results, so that the player/s can choose which devices to use - same as with display, sound and network devices.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!