Using GetRawInputBuffer correctly

前端 未结 2 1141
梦如初夏
梦如初夏 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条回答
  •  Happy的楠姐
    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....

提交回复
热议问题