Using GetRawInputBuffer correctly

前端 未结 2 1119
梦如初夏
梦如初夏 2021-01-21 20:10

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

相关标签:
2条回答
  • 2021-01-21 20:45

    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.

    0 讨论(0)
  • 2021-01-21 21:01

    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....

    0 讨论(0)
提交回复
热议问题