tulskiy / jkeymaster

A library for registering global hotkeys in java with JNA. The goal is to support X11-based platforms, Windows and MacOSX
GNU Lesser General Public License v3.0
233 stars 45 forks source link

Joysticks #20

Open nixnull opened 10 years ago

nixnull commented 10 years ago

Hello,

I've been using your code in my project OSplt. It works wonderfully and I'm very greatful. I was wondering if there was some way to deal with Joystick input, as it would be quite useful for my project.

tulskiy commented 10 years ago

It's definitely possible. From a quick search I see joystick api for win32, somewhat weird api for linux. But I only use linux now, and don't have a joystick to experiment with.

Have a look at https://code.google.com/p/jnativehook/. They have support for listening to mouse events, maybe you'll be able to listen to joystick too.

nixnull commented 10 years ago

Thanks for the information. They also do not currently support joysticks (on linux at least), but I have asked them about the future possibility of doing so. Unfortunately I do not have the time or knowledge to offer help in coding on this matter.