您好,我目前正在使用 DirectX 制作游戏,但无法让鼠标滚轮获得当前档位或类似的东西。我查找了一个小示例,但找不到真正有效的示例。我看到他们正在使用 Windows 消息 WM_MOUSEWHEEL,但我在获取当前缺口时遇到问题,请帮忙。
问问题
663 次
1 回答
1
Mouse wheels do not have a "current notch" so there's no way to query for such a thing from that device. They only measure change delta and direction and this information will be included in the event you get when it is moved. If there is a "current notch" it is in your program and you'll have to track it yourself. This might come in the form of a zoom factor, a page position, or whatever.
于 2012-12-08T22:01:46.133 回答