eventlircd: add initial wiimote support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-01-20 02:10:41 +01:00
parent 4d3e6473e5
commit 2a70403732
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,14 @@
BTN_A = KEY_OK # Ok
BTN_B = KEY_EXIT # Back/Exit
KEY_UP = KEY_UP # Up
KEY_DOWN = KEY_DOWN # Down
KEY_LEFT = KEY_LEFT # Left
KEY_RIGHT = KEY_RIGHT # Right
KEY_PREVIOUS = KEY_VOLUMEDOWN # Vol-
KEY_NEXT = KEY_VOLUMEUP # Vol+
BTN_MODE = KEY_PROG1 # Home
BTN_1 = KEY_CHANNELUP # Channel Up
BTN_2 = KEY_CHANNELDOWN # Channel Down

View File

@ -162,4 +162,19 @@ ENV{ID_VENDOR_ID}=="0471", ENV{ID_MODEL_ID}=="20cc", \
LABEL="end-usb"
#-------------------------------------------------------------------------------
# Ask eventlircd to handle Bluetooth HID devices that show up as event devices
# and are known to be remote controls. For simplicity, the event map file names
# have the format <BUSTYPE>_<VENDOR>_<PRODUCT>.evmap.
#-------------------------------------------------------------------------------
SUBSYSTEMS=="bluetooth", GOTO="begin-bluetooth"
GOTO="end-bluetooth"
LABEL="begin-bluetooth"
ATTRS{name}=="Nintendo Wii Remote", \
ENV{eventlircd_enable}="true", \
ENV{eventlircd_evmap}="wiimote.evmap"
LABEL="end-bluetooth"
LABEL="end"