Using DirectInput with multiple joysticks/pads
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
Waassaap!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement