Jump to content
  • Advertisement

Archived

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

X-Wolverine-X

2 DirectInput joysticks?

This topic is 5627 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

Ok, I know how to set up one joystick with DirectInput. I have no clue on what to do for two or more. I know I would probably have to declare two LPDIRECTINPUTDEVICE8 objects and probably two GUIDs for two sticks. I''m not sure how I would go about getting my function for enumerating the joystick to work for two. I''m assuming an enumeration CONTINUE return instead of STOP just wont do it. "Seeing you in action is a joke." - Blanka

Share this post


Link to post
Share on other sites
Advertisement
What you can do is store each joystick guid found during enum in an array. The enum function would return CONTINUE each time.

Once enumeration is done, you should have an array of available joystick guids ready to use for device creation.

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!