Jump to content
  • Advertisement
Sign in to follow this  
3Flight

Raw Input - what is usUsapgePage and usUsage?

This topic is 4057 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'm writing a program that should be able to handle commends from any HID device connected to PC. I've already managed to get handles to all the devices, but I need to register them using RegisterRawInputDevices to be able to recieve their WM_INPUT messages. And so I need to pass RAWINPUTDEVICE structures to this function. As well as a handle to a device, this structure has "usUsagePage" and "usUsage" in it. I couldn't find any info about these and how/where to retrieve them. How should I set them? (Sorry 4 my bad English, I'm Russian)

Share this post


Link to post
Share on other sites
Advertisement
It's a long read, but this article explains the basic purpose of those two fields. This article goes into a bit more detail about what the Top Level Collections are, and provides some example values for the fields.

Hope that helps.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!