Raw Input - what is usUsapgePage and usUsage?

Started by
0 comments, last by ApochPiQ 16 years, 11 months ago
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)
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.

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

This topic is closed to new replies.

Advertisement