开发者

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

开发者 https://www.devze.com 2023-03-07 11:21 出处:网络
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?There is no API in X

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号