Jump to content
  • Advertisement
Sign in to follow this  

IDirectInputDevice8::GetObjectInfo( ??? )

This topic is 3793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to get some info about a device's objects. However, I can't seem to figure out how to properly call the GetObjectInfo() function. The first argument is quite clear but as for dwObj and dwHow ... beats me. I tried to set the dwHow to DIPH_BYOFFSET but if do that I don't really know what I should set the dwObj to. The usual DIJOFS_* don't seem to apply here. If I set the dwHow to DIPH_BYUSAGE I apparently have to employ the DIMAKEUSAGEDWORD(WORD, WORD) macro which Microsoft discribes as follows: UsagePage: Type is WORD. Usage page of the device object. Usage: Type is WORD. Usage of the device object. Not exactly my idea of a crystal-clear documentation ... Anyway, could someone please help me with this one and tell me what I have to set the dwObj value to to get info about a specific object or what exactly is meant by Usage Page and Usage? Thanks, ChaosIII

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!