Finding out whether a DirectInput device supports XInput (with mingw/gcc)
        Posted  
        
            by 
                Mr. Wonko
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mr. Wonko
        
        
        
        Published on 2010-12-29T12:34:16Z
        Indexed on 
            2010/12/29
            12:53 UTC
        
        
        Read the original article
        Hit count: 438
        
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.
© Stack Overflow or respective owner