BTW, is your joystick device USB-connected? If so, it might be possible to construct a rule using other attributes.
You should be able to get the joystick device (/dev/input/event<number>) using
then
Code:
xinput list-props <device-number>
From that udevadm can be used to get the device attributes eg assuming the joystick is /dev/input/event12...
Code:
udevadm info -a -n /dev/input/event12