You aren't alone in confusion. Joy2Key is the most ill-documented piece of software I've come across in years.
Code:
cat /usr/share/doc/joy2key/examples/joy2keyrc.sample
That's my only advice. Don't even bother with the man file or you'll do your own head in.
I used this once and managed to get it working with some java NES emulator embedded in a webpage, where I had to run joy2key and then click on the open window, then start the emulator.
You'll want to have at least this much in your ~/.joy2keyrc :
Code:
COMMON
-X
-dev /dev/input/js0
-thresh -15715 5684 16383 -13709 15046 -10365 11034 -13375
Assuming your joystick is /dev/input/js0, and you want this for an X-window based game. If it's fullscreen or console check the examples file. The thresh values are in the form low hi low hi, and you can get your own values by running the program by itself, ie:
Code:
joy2key -dev /dev/input/js0 -terminal
Again...this program is really obnoxious. If you're fed up with it (and I certainly wouldn't blame you if you were) a search in synaptic shows "xjoypad" which seems to do the same thing, but I don't have any experience with it.
Good luck.
Bookmarks