Archive for November, 2006

Support for Xbox360 pad on Linux

November 23rd, 2006 by tripledes

This is just really easy, the Xbox linux project already has included support for this pad so it’s only needed to download two files ( xpad.h and xpad.c) and you’re almost done.

For building it I found two different options, the first and maybe the easiest is to put them on your current kernel tree replacing the existing ones and then make modules && make modules_install (after configuring the kernel properly, USB support, (old) Xbox pad support…). And the second one is to get this Makefile, put it on a folder with the previously downloaded files, then execute make and copy the built module under /lib/modules/`uname -r`/the_folder_you_wish I use the extra directory created by some Gentoo ebuilds.

So…that’s it, update your modules information with depmod and load the modules…you’re done :)

Configuring LIRC to work with xmame

November 22nd, 2006 by tripledes

This is a common LIRC configuration but the tricky part is xmame doesn’t have human readable format for its commands, it takes keyboard scancodes. So a simple configuration sample would look like this:

begin
  prog = xmame
  button = Back-Exit
  config = 1
end
begin
  prog = xmame
  button = Next
  config = 15
end

These lines will tell xmame to get the remote control button Back-Exit as ESC (scancode = 1) and Next as the tab (scancode = 0f = 15). Having a joystick I think those two are the most needed keys.

This little set up comes about configuring MythTV’s gaming module which allows you to launch different emulators and one of them is xmame but I needed to get rid off the keyboard. So now I have a nice combo, Xbox360 pad + MythGame, for playing my almost forgotten favourite games.

Useful links: