mapping is set thru 2 config files named /root/.joy2keyrc and /root/.joy2keyrc2. i am using scan codes for this particular application. it is also ably to use plain letters for "X" based games.
so i have already set it up, and i even set up a reasonable threshold for the axis.
here is a quick setup guide for a loopback install:
so first get your loopback installthen
1. upgrade to alsa - menu > XDSL Upgrades > Upgrade Sound > Install ALSA (this will also install gnu utils)
2. install gcc - menu >My DSL >My DSL browser > Text search "gcc" >pivk the package "GCC-with-libs"
3. download the source code for joy2key-1.6.1
here. then make and install it
CODE
wget http://interreality.org/~tetron/technology/joy2key/joy2key-1.6.tar.gz
tar -xzvf joy2key-1.6.1.tar.gz
cd joy2key-1.6.1
./configure
make
sudo make install
6. then make a bash script to launch mugen at /usr/bin/mugen:
CODE
#!/bin/bash
#This script launches the 2d fighter game Mugen from either E:\Games\xmugen or F:\Games\xmugen.
#Find the Mugen executable.
if [ -f /mnt/hda50/Games/xmugen/mugen ]
then
MUGEN=/mnt/hda50/Games/xmugen
echo 'Using Xmugen on E Drive...'
else
if [ -f /mnt/hda55/Games/xmugen/mugen ]
then
MUGEN=/mnt/hda55/Games/xmugen
echo 'Using Xmugen on F Drive...'
else
echo 'No xmugen folder found in either E:\Games\ or F:\Games\'
echo 'Please copy your xmugen folder to one of these locations'
echo 'and make sure that the Mugen executable is named "mugen".'
fi
fi
#Execute the joystick to keyboard mapper for both 1st controller and 2nd controller.
joy2key -dev /dev/js0 -rcfile /root/.joy2keyrc -config mugen > $MUGEN/logs/joy2key1log.txt &
joy2key -dev /dev/js1 -rcfile /root/.joy2keyrc2 -config mugen > $MUGEN/logs/joy2key2log.txt &
#Change directory to the Mugen directory.
cd $MUGEN
#Execute the Mugen executable.
./mugen > $MUGEN/logs/mugenlog.txt
#When the Mugen executable exits, kill the joystick to keyboard mapper.
killall joy2key
*make sure that in F:\games\xmugen there is a folder named "logs".
7. then copy this into /root/.joy2keyrc
CODE
COMMON
-thresh -16014 16753 -15179 17588 -32767 0 -16747 16019 -17857 14909 -32767 0 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767
START mugen
# send keyup codes
2 -rawconsole
# Q : W : E : R : T : Y : U : I : F1 : O : P : [ : ] : Escape
-buttons 16 17 18 19 20 21 22 23 59 24 25 26 27 0x1
# ] (Left) : P (Right) : O (Up) : [ (Down)
-axis 27 25 24 26
and this into /root/.joy2keyrc2
CODE
COMMON
-thresh -16014 16753 -15179 17588 -32767 0 -16747 16019 -17857 14909 -32767 0 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767
START mugen
# send keyup codes
2 -rawconsole
# A : S : D : F : G : H : J : K : F2 : L : ":" : ' : ` : Escape
-buttons 30 31 32 33 34 35 36 37 60 38 39 40 41 0x1
# ` (Left) : ":" (Right) : L (Up) : ' (Down)
-axis 41 39 38 40
7. then just run "mugen" from the console (so to kill the window manager press (CTRL+ALT+BACKSPACE). also remember to make sure that /usr/bin/mugen and /usr/bin/joy2key are executable.
* i have not yet tried this on a different xbox, so you might need to install more mydsl packages, but this is the basic groundwork. this method has worked with every setup i have (r1sky, kakuto, and xtreme).
good luck.