我正在尝试弄清楚如何以编程方式判断 Windows 7 机器是否启用了触摸。是否有任何触摸 API(托管或非托管)可以帮助我实现这一目标?或者我可以检查注册表中的某些内容?
最佳答案
使用GetSystemMetrics
寻找 SM_MAXIMUMTOUCHES
设置。
Nonzero if there are digitizers in the system; otherwise,
0
.
SM_MAXIMUMTOUCHES
returns the aggregate maximum of the maximum number of contacts supported by every digitizer in the system. If the system has only single-touch digitizers, the return value is1
. If the system has multi-touch digitizers, the return value is the number of simultaneous contacts the hardware can provide.
关于c# - 有没有办法以编程方式判断系统是否启用了触摸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5957751/