0

I'm adding gamepad support to my app and I'd like to make sure I'm not misusing either of those for determining whether a key has been pressed. What is the purpose of either GamepadButtonFlags and GamepadKeyCode? Are there any guidelines for which should be used in certain cases, or are they completely interchangeable?

4

1 回答 1

0

事实证明(至少对于我使用的版本),GamepadButtonFlags关键标志比任何想要完全控制器支持的人想要的要少得多。GamepadKeyCode有所有的键码,但我找不到让它们工作的方法,谷歌搜索只给了我 9 个搜索结果,包括这个(我自己的)帖子。

所以我只是将 SharpDX 换成了 SlimDX,所有相同的方法都可以完美地与 GamepadKeyCode 配合使用。

于 2016-10-08T22:51:46.867 回答