PDA

View Full Version : I'm having trouble figuring out Joy2Key....


richardwad1
June 17th, 2007, 03:56 AM
I went through the readme file and that only confused me more. I want to configure joy2key to work with xmame and I can't even figure out how to run joy2key. I've found a fe wpeople talking about it on google, but they were having specific problems with it....not really problems starting it. Any help would be appreciated. I guess you can tell I'm new to linux.

Cappy
June 17th, 2007, 04:43 AM
sudo apt-get install joy2key

to run it should be
joy2key

richardwad1
June 17th, 2007, 12:18 PM
I've already gotten that far, but I don't know what to put after joy2key in the terminal. Just typing that brings up a message that tells me what joy2key is then says "Must specify a target!"

buttons
June 17th, 2007, 08:07 PM
You aren't alone in confusion. Joy2Key is the most ill-documented piece of software I've come across in years.
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 :
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:
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.

richardwad1
June 17th, 2007, 08:51 PM
Thanks for the help! I'll try it and let you know how it goes.

les-h
August 27th, 2007, 05:28 PM
Have you managed to get it working yet? I have it working but struggling with full screen mode.

Gidskid
April 29th, 2009, 11:30 AM
I typ[CENTER]e[ed in all the commands but i still can't get the damn thing to open. Does it open like it does in windows or am i missing something?

archeryguru2000
June 24th, 2009, 03:08 PM
Has anybody been able to get this program to work with an actual game? I've been able to get my commands from a game pad to emulate keyboard commands but only in specified windows, not in an actual game. Any luck from anybody else?

~~archery~~