gpt4 book ai didi

java - 如何检查机器/系统是否在 JavaFx 应用程序中启用了触摸?

转载 作者:行者123 更新时间:2023-11-30 10:51:35 24 4
gpt4 key购买 nike

我们有一个 JavaFx 应用程序,在某些情况下,我们需要知道运行该应用程序的 Windows 机器是否支持触控。仍然无法找到任何合适的解决方案。

最佳答案

我没试过,但是根据文档:

Platform.isSupported(ConditionalFeature.INPUT_TOUCH)

Platform.isSupported(ConditionalFeature.INPUT_MULTITOUCH)

来自 JavaDoc:

On embedded platforms JavaFX makes an attempt to initialize this ConditionalFeature based on what input peripherals are attached. On desktop platforms this ConditionalFeature will typically default to false.

关于java - 如何检查机器/系统是否在 JavaFx 应用程序中启用了触摸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34654806/

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