X-Box xpad + MythGame-0.18.1 + snes9x + xmame + Gentoo + udev HOWTO (was: Re: [mythtv-users] recommended joysticks or gamepads for xmame and mythgame)

Jesse Guardiani jesse at wingnet.net
Wed Nov 16 10:21:18 EST 2005


Jesse Guardiani wrote:

[...]

> 20-xpad.rules
> ------------------------------
> This file goes in /etc/udev/rules.d on Gentoo. It maps my Mad Catz 
> controller to /dev/input/js_madcatz
> and /dev/input/js_madcatz2. This way I can enter these symlink paths 
> in my MythGame config menu.
> I can then remove the controller at will and rest assured that it will 
> always return to the same /dev node
> when I plug it back in. If you run udev, you can change the idProduct 
> and idVendor values to match
> your controller. Or, if you're controller reports a serial, use that. 
> Mine didn't.
> NOTE: This rule file creates TWO symlinks. That isn't a typo. It does 
> this because MythGame uses
> the first one and xmame uses the second one. For some reasons xmame 
> wouldn't read the joystick
> device properly on my system if MythGame and xmame both pointed to the 
> same device symlink.

See attached for an update to this file. I used the wrong syntax for 
multiple symlinks and didn't test
properly. The attached file fixes the problem.

-- 
Jesse Guardiani
Programmer/Sys Admin
jesse at wingnet.net

-------------- next part --------------
BUS="usb", KERNEL="js*", SYSFS{idProduct}=="2010", SYSFS{idVendor}=="0e8f", NAME="input/%k", MODE="0664", GROUP="games", SYMLINK="input/js_madcatz input/js_madcatz2"


More information about the mythtv-users mailing list