I\'m attempting to use the Win32 Raw Input API to collect raw mouse data with higher precision, but I can\'t seem to make sense of the documentation and samples at all for
Long late answer, but GetRawInputBuffer
seems to be used for polling outside of the message processing loop. Use GetRawInputData
within WM_INPUT
handling or use GetRawInputBuffer
outside the message processing loop.
I guess with GetRawInputBuffer() you can only read HID data. That means only the hid structure in the data part of the RAWINPUT structure is filled with input data. I was able to read input from my keyboard using the bRawData member of RAWHID but i think thats useless because that values vary from keyboard to keyboard. So I switched back to GetRawInputData....