如何在vb.net中获得鼠标设备的dpi? [英] How can i get the dpi of a mouse device in vb.net?

查看:132
本文介绍了如何在vb.net中获得鼠标设备的dpi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,用户应该将鼠标移动两英寸,然后执行特定操作,或者等等。我没有机会指导用户将他们的老鼠移动到这个距离,我不知道他们使用的是哪只老鼠。有没有机会检测鼠标设备的dpi?



我使用Visual Basic 2010 Express。



任何帮助都将不胜感激。



最好的问候,



Ansgar

解决方案

AFAIK没有办法说出来。事实上,对于一些指示设备,无论如何都没有对应于一英寸的物理运动 - 我使用了一个颠倒的鼠标,它可以在拇指移动的情况下工作,屏幕上的指针移动与拇指移动的物理距离几乎没有关系!



这对你来说至关重要,那么你需要校准用户鼠标到你的软件......


Hallo,

in my application the users should move their mice two inch and then an specific action takes place. I do not have the opportunity to instruct the users to move their mice exactly this distance and I do not know which mice they use. Is there any chance to detect the dpi of a mouse device?

I use Visual Basic 2010 Express.

Any help would be much appreciated.

Best Regards,

Ansgar

解决方案

AFAIK there is no way to tell. Indeed with some pointing devices there is no physical movement that corresponds to one inch anyway - I use a trackman "upside down" mouse that works off thumb movement and the pointer movement on screen bears very little relation to the physical distance my thumb had moved!

Of this is critical to you, then you need to "calibrate" you users mouse to your software …


这篇关于如何在vb.net中获得鼠标设备的dpi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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