本文介绍了如何检测向左或向右移动鼠标并向上或向下滚动的鼠标事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Get_X_LParam进行鼠标移动,使用WParam进行车轮移动。

像DWORD x = HIWORD(wParam)但这两个事件都返回连续值。



例如。如果(x> 0)

{

//这样做

}



else

{

//这样做

}



Wparam每次只返回相同的值,即使我向下移动我的方向盘。与Get_X_LParam相同



我尝试过:



我试过了我在问题中描述了

解决方案

I have used Get_X_LParam for mouse movement and WParam for wheel movement.
Like DWORD x = HIWORD(wParam) but both of these events return continuous values.

for eg. if(x>0)
{
//do this
}

else
{
//do this
}

the Wparam only returns the same value every time even if I am moving my wheel downwards. Same with Get_X_LParam

What I have tried:

I have tried what I have described in the problem

解决方案


这篇关于如何检测向左或向右移动鼠标并向上或向下滚动的鼠标事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 22:02
查看更多