我如何获得“指针分辨率"? (或鼠标DPI)在Windows上? [英] How I can get the "pointer resolution" (or mouse DPI) on Windows?

查看:213
本文介绍了我如何获得“指针分辨率"? (或鼠标DPI)在Windows上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

专家.

如何在Windows上查询鼠标DPI(指针分辨率)?

How I can query the mouse DPI (pointer resolution) on Windows?

我阅读了 Windows XP的指针弹道学.它说:典型的指针分辨率是400米奇/英寸".但是如何查询各种鼠标使用的确切值?

I read the article Pointer Ballistics for Windows XP. It says "the typical pointer resolution is 400 mickey/inch". But how I can query the exact value used by various kinds of mice?

如果您也能指出与该主题相关的文档,那将是很好的事情.

It would be great if you could also point me to documents related to this topic.

谢谢!

推荐答案

这是不可能的.鼠标DPI只是鼠标移动一英寸时报告位置更改的次数.在鼠标绳的另一端,您所知道的是您会定期更改位置,并且每次都只需在屏幕上移动指针即可.

It's impossible to tell. The mouse DPI is simply the number of times the mouse reports a change in location when it's moved by one inch. On the other side of the mouse cord all you know is that you periodically get a change in location, and you simply move the pointer on the screen every time.

如果这对于某些特殊应用而言至关重要,您可以做的一件事就是让用户将鼠标精确移动一英寸并计算位置的变化.如果您是在某些专业环境中执行此操作,则可能值得花些时间发行特殊设备-为您的用户提供相同型号的高端鼠标,并带有特定的 known DPI.我之所以说高端,是因为对于大多数小鼠来说,大约DPI的数字会非常荒谬.

One thing you can do if this is critically important for some special application is to have the user move his/her mouse exactly one inch and count the changes in location. If you're doing this in some professional environment then it's probably worth your while to issue special equipment- give your users the same model of high-end mouse with a particular known DPI. I say high-end because for most mice the approximate DPI number will be ludicrously inaccurate.

这篇关于我如何获得“指针分辨率"? (或鼠标DPI)在Windows上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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