Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify source keyboard #73

Closed
paradoxalan opened this issue Oct 26, 2015 · 1 comment
Closed

Identify source keyboard #73

paradoxalan opened this issue Oct 26, 2015 · 1 comment
Labels

Comments

@paradoxalan
Copy link

This is not actually an issue, but I'm currently using jnativehook to capture keyboard input with the application in the background. Working fine. The problem is that the pc that the application is running have 2 usb keyboards and I need to to know from which one the NativeKeyEvent event is comming from. I'm digging the docs but can't find out. Can this be acomplished with jnativehook? Or I need some other library like usb4java. Or I need to use both combined? What do you think?

@kwhat
Copy link
Owner

kwhat commented Oct 26, 2015

Currently, JNativeHook does not have a way to differentiate between input sources. That kind of functionality is a little outside of the scope of this library. I don't think usb4java/libusb is really what you are looking for. Try looking for a Java wrapper for hidapi or libhid like https://code.google.com/p/javahidapi/. If one doesn't exist, it shouldn't be very hard to write as the backing libraries already exist.

@kwhat kwhat closed this as completed Jan 18, 2016
@kwhat kwhat added the wontfix label Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants