Is there a Java/C library which allows identify multiple keyboards?

两盒软妹~` 提交于 2019-12-22 11:35:31

问题


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?

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.


回答1:


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/



来源:https://stackoverflow.com/questions/16709776/is-there-a-java-c-library-which-allows-identify-multiple-keyboards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!