是否有允许识别多个键盘的Java / C库? [英] Is there a Java/C library which allows identify multiple keyboards?
问题描述
我需要使用一台计算机连接多个键盘/鼠标。 Manymouse图书馆可以识别不同的鼠标,但是有没有可以识别不同键盘的图书馆?
I need to connect more than one keyboard/mouse with a single computer. Manymouse library can identify different mouses, but is there a library which can identify different keyboards?
我的意思是,当我按下E键时,程序会告诉我KeyPress事件来自哪个键盘。使用C#,SDGToolkit可以做到,Java世界或C世界中有什么东西,它像Manymouse一样支持所有操作系统吗?我对Mac和Linux解决方案更感兴趣。
I mean, when I press Key "E", the program can tell me which keyboard the KeyPress event is from. With C#, the SDGToolkit can do it, is there something in the Java world or C world, which supports all OS just as Manymouse does? I am more interested in Mac and Linux solution.
推荐答案
了解解决方案。我可以使用hid库来检测不同的键盘。以下是解释:
http://nanlee.wordpress.com/2013/06/12/manykeyboard-using-java-hid-api-to-handle-multiple-keyboard-input/
Know the solution. I can use a hid library to detect different keyboard. Here is an explanation : http://nanlee.wordpress.com/2013/06/12/manykeyboard-using-java-hid-api-to-handle-multiple-keyboard-input/
这篇关于是否有允许识别多个键盘的Java / C库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!