Archived

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

X-Wolverine-X

2 DirectInput joysticks?

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
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