Pearlseattle Member

Registered: Aug 2007 Location: Zurich, Switzerland Distribution: Gentoo Posts: 997

Rep:



It basically monitors whichever USB-device you have connected to your PC (and which you want to monitor) and translates any button press or release events on that device into key events (which you have to define/map).



Example:

You can define that whenever you press your second button on your joystick it generates on the currently focused window the keyboard press event "X", that for the same still on the second button it generates the key press events "xyZ" on the focused window, and so on for any other buttons of any other devices. I'm having problems explaining this but in the end using it is extremely simple... .



Not sure if it's useful nor where to go from here (with this base it might be quite easy to do something more complex than to just target a mapping to key events) - will wait to see if I get any feedback and/or if more than a couple of users per year access the page.



Sorry for the delay - had some trouble at work and some parts of the code were a bit tricky for me. So, here is finally the utility I was working on to make my throttle work with X-Plane in Linux.It basically monitors whichever USB-device you have connected to your PC (and which you want to monitor) and translates any button press or release events on that device into key events (which you have to define/map).Example:You can define that whenever you press your second button on your joystick it generates on the currently focused window the keyboard press event "X", that for the same still on the second button it generates the key press events "xyZ" on the focused window, and so on for any other buttons of any other devices. I'm having problems explaining this but in the end using it is extremely simple... .Not sure if it's useful nor where to go from here (with this base it might be quite easy to do something more complex than to just target a mapping to key events) - will wait to see if I get any feedback and/or if more than a couple of users per year access the page.Sorry for the delay - had some trouble at work and some parts of the code were a bit tricky for me.