Search code examples
c#xnauser-inputjoypad

How to use a Play Station 2 controller connected through USB port in XNA



I'm planning to do a simple game using the XNA and I would like to add the possibility of using a Play Station 2 controller. Is there a way to detect its inputs?


Solution

  • There is no API in XNA / .NET Framework which gives you simple access to generic gamepads. There is a .NET wrapper around DirectInput which you could use for that purpose.