Question

I'm working on an input system, wrapping DirectInput and XInput. Currently XInput devices are enumerated twice, once as XInput and once as DirectInput (since they support both).

How can I find out if a given DirectInput device also supports XInput? There is this MSDN page on the topic, but it requires wbemidl.h and wmsstd.h which aren't available in mingw/gcc (and for some reason I want to avoid msvc - probably by habit).

I don't think blacklisting device names/guids is a good solution, but is there a better one?

Thanks.

Was it helpful?

Solution

wbemidl.h and all the related headers are available from mingw-w64 project, don't mind the 64it also supports 32bit.

Here is an example that implements IsXInputDevice without including wmsstd.h

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top