如何检测鼠标的光学动作 [英] How to detect optical mouse motion

查看:125
本文介绍了如何检测鼠标的光学动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个c代码来 检测光学鼠标的运动.因为在移动光电鼠标时我想禁用我的程序之一,我该怎么办.请帮助我....

I want a c code to detect optical mouse motion. Because i want a disable one of my program when moving optical mouse.how can i do it. Please help me....

推荐答案

我认为您需要使用
I think you need to use Windows hooking[^] and trap all mouse messages so you can react to a particular situation.


这篇关于如何检测鼠标的光学动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆