60-joystick.rules 515 B

1234567
  1. # Restore any stored calibration for the device
  2. ACTION=="add", KERNEL=="js*", RUN+="/usr/bin/jscal-restore %E{DEVNAME}"
  3. # Set PS3 controller leds to the same value bluez will choose for it.
  4. # IMPORT{parent} used because $parent did not appear to be working; we
  5. # don't need the devpath of the js device for this so it is OK to overwrite.
  6. ACTION=="add", KERNEL=="js*", IMPORT{parent}="DEVPATH", ATTRS{name}=="Sony PLAYSTATION(R)3 Controller", RUN+="/lib/udev/js-set-enum-leds /sys/%E{DEVPATH}/device/leds/ $number"