C++ DirectInput Mouse Scroll Wheel with a Laptop Touchpad

左心房为你撑大大i 提交于 2020-01-05 05:25:49

问题


When using DirectInput, it is my understanding that the mouse wheel delta should be stored in DIMOUSESTATE objects lZ variable. However, when I am scrolling with my laptop touchpad instead of an actual mouse with a wheel, it seems like the scroll is not being recognized since 1Z remains zero always. Is there a better solution than using WM_MOUSEWHEEL if that will even work? Since I am currently using DirectInput for the rest of the input I would like to stay consistent and use that but how can I get the scroll information from the touchpad?

Thanks!

来源:https://stackoverflow.com/questions/9186792/c-directinput-mouse-scroll-wheel-with-a-laptop-touchpad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!