我们有一个 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/