Typo in file name
[wiimote-pad] / 70-wiimote.rules
1 # udev rules for wiimotes tablets.
2 # These rules were compiled for the Debian GNU/Linux distribution,
3 # but others may, and indeed are encouraged to, use them also.
4
5 ATTRS{name}=="Nintendo Wii*", ENV{WIIMOTE}="1"
6
7 KERNEL!="event[0-9]*", GOTO="wiimote_end"
8 ENV{WIIMOTE}!="1", GOTO="wiimote_end"
9
10 ATTRS{name}=="Nintendo Wii Remote IR", ENV{WIIMOTE_TYPE}="ir"
11 ATTRS{name}=="Nintendo Wii Remote Accelerometer", ENV{WIIMOTE_TYPE}="accel"
12 ATTRS{name}=="Nintendo Wii Remote", ENV{WIIMOTE_TYPE}="controller"
13
14 MODE="0660", GROUP="bluetooth"
15
16 # Port specific link for users of multiple tablets of the same type.
17 # The ID_PATH variable is set by the "path_id" script in an earlier rule file.
18 ENV{ID_PATH}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-wiimote"
19
20 # Convenience links for the common case of a single tablet.  We could do just this:
21 ENV{WIIMOTE_TYPE}=="controller", SYMLINK+="input/wiimote"
22 ENV{WIIMOTE_TYPE}!="controller", ENV{WIIMOTE_TYPE}!="", SYMLINK+="input/wiimote-$env{WIIMOTE_TYPE}"
23
24 LABEL="wiimote_end"
25