gpt4 book ai didi

c# - 有没有办法以编程方式判断系统是否启用了触摸?

转载 作者:太空狗 更新时间:2023-10-29 22:28:27 25 4
gpt4 key购买 nike

我正在尝试弄清楚如何以编程方式判断 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 is 1. 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com