Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到对于 Windows 原始输入,没有与 WM_MOUSEHWHEEL 等效的文档记录,但我收到了用于水平滚轮单击的 WM_INPUT 消息。在我开始重新发明轮子的旅程之前(愚蠢的双关语),是否有人已经对此类消息进行了分类?
没关系,大概用了5分钟。
如果有人来找这个,似乎#define RI_MOUSE_HWHEEL 0x0800解决了这个问题。对该标志的测试与RI_MOUSE_WHEEL. 增量在 usButtonData 中:右侧为正,左侧为负。
#define RI_MOUSE_HWHEEL 0x0800
RI_MOUSE_WHEEL