Jump to content
  • Advertisement


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


Using DirectInput with multiple joysticks/pads

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

Okay, I''m sure this has an obvious answer somewhere, but here goes: I''m writing a game engine wrapper using DirectX (everyone seems to be these days...), and I''m currently designing the input system for it. Now what I''m aiming for is something as simple as that of a game console, where if you''re plugged into controller port 3, you''re player 3, (although I''ve come up with a nice mapping system, but that''s not important here). As you can imagine, this is a little bit difficult on a PC, where you can have lots of USB controllers all plugged in at once, some of which are quite likely to be identical (ie. manufacturer, id string, etc). During my research I found an article in MSDN about using multiple sidewinders. Their solution, enumerate all the plugged in controllers, and get player one to press a button, then player two etc. This will work fine, but it''s really gonna p**s off players if they have to do this every time they play the game or a controller is unplugged. Well thats it, hope someone a bit more well-versed in this area can help. (PS, I''m using VC++ 6, Win98, DX6.1) Cheers for some of your attention span; (o^__^o) - Jamie

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!