How I can get the “pointer resolution” (or mouse DPI) on Windows?

旧巷老猫 提交于 2019-12-10 18:06:39

问题


experts.

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

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.

Thanks!


回答1:


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.

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.



来源:https://stackoverflow.com/questions/7182199/how-i-can-get-the-pointer-resolution-or-mouse-dpi-on-windows

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