Ok here's a little app I setup so I could use my mythbox with a gamepad and some games
A lot of linux games dont have joystick support so this little app will map you joystick buttons/axis to key presses
you run a game by going
Code:
jkeys example-config.joy armagetronad
where example-config.joy is a simple xml file with the key mappings like so
Code:
<config>
<joystick id="0">
<axis number="0" low="Left" high="Right" />
<axis number="1" low="Down" high="Up" />
<button number="0" key="Space" />
<button number="1" key="Return" />
<button number="2" key="a" />
<button number="3" key="b" />
<button number="4" key="c" />
<button number="5" key="d" />
<button number="6" key="z" />
<button number="7" key="x" />
<button number="9" key="Escape" />
<button number="10" key="p" />
</joystick>
</config>
It should allow for multi axis any number of buttons and mutliple joysticks etc, although its only been tested with my gamepad
I pushed this into a google project if any one is interested in helping out, or just trying it http://code.google.com/p/jkeys/
Code:
sudo apt-get install python-xlib python-pygame svn
mkdir ~/jkeys
cd ~/jkeys
svn checkout http://jkeys.googlecode.com/svn/trunk/ jkeys-read-only
Bookmarks