简体   繁体   English

有没有办法使用Java的Windows 7多点触控?

[英]Is there any way to use Windows 7 multitouch from Java?

I'm aware of MT4j and the Windows 7 Multitouch Interop Library , but neither of these seem to be what I'm looking for: the MT4j code is pretty terrible and not well-documented, and the Win7 library seems to be a .NET assembly (and thus not able to be used natively by Java). 我知道MT4jWindows 7多点触控互操作库 ,但这些似乎都不是我想要的:MT4j代码非常糟糕且没有详细记录,Win7库似乎是一个.NET程序集(因此不能由Java本地使用)。 Is there anyway to be able to get WM_TOUCH messages in Java? 无论如何能用Java获取WM_TOUCH消息吗? Or is it possible to actually use the Win 7 interop library from within Java? 或者是否可以在Java中实际使用Win 7互操作库?

JavaFX 2.2+完美支持win7的多点触控

Sorry, but you can't. 对不起,但你不能。 There's only a kind of workaround... 只有一种解决方法......

Touch2TUIO is a open source command line tool, that can native Windows 7 touch messages translate/forward to the TUIO Protocol (so you could use them in Java or any other language). Touch2TUIO是一个开源命令行工具,可以将原生Windows 7触摸消息转换/转发到TUIO协议(因此您可以使用Java或任何其他语言)。 Still in development, but on most hardware already usable (and its open source - so everyone is free to make changes/improvements to it). 仍在开发中,但在大多数已经可用的硬件上(以及它的开源 - 所以每个人都可以自由地对其进行更改/改进)。 It's not exactly, what you're looking for, but maybe the only solution now... 这不完全是你想要的,但也许是现在唯一的解决方案......

Touch2TUIO: http://dm.tzi.de/research/hci/touch2tuio/ Touch2TUIO: http ://dm.tzi.de/research/hci/touch2tuio/

What do you mean by pretty horribly code and not well documented? 什么是非常可怕的代码,没有详细记录? I built a huge MT4J application and have used the API of the MT4J latest versions and have had no problem with it. 我构建了一个巨大的MT4J应用程序,并使用了MT4J最新版本的API,并且没有任何问题。

Perhaps you could suggest some improvements on the documentation and/or API of that library. 也许您可以建议对该库的文档和/或API进行一些改进。 From my own experience I can tell you it's a worth multitouch framework to try. 根据我自己的经验,我可以告诉你这是一个值得尝试的多点触控框架。 In the Java world is the only one I know of by the way. 在Java世界中,我唯一知道的是顺便说一句。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM