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?
Turns out (at least for the version I was using), GamepadButtonFlags
has much fewer key flags than anyone who wants full controller support would want. GamepadKeyCode
has all the keycodes, but I couldn't find a way to make them work, and googling gave me only 9 search results, including this (my own) post.
So I just swapped SharpDX for SlimDX and all the same methods worked flawlessly with GamepadKeyCode.