mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
eventlircd: add initial wiimote support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4d3e6473e5
commit
2a70403732
14
packages/sysutils/remote/eventlircd/evmap/wiimote.evmap
Normal file
14
packages/sysutils/remote/eventlircd/evmap/wiimote.evmap
Normal 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
|
@ -162,4 +162,19 @@ ENV{ID_VENDOR_ID}=="0471", ENV{ID_MODEL_ID}=="20cc", \
|
|||||||
|
|
||||||
LABEL="end-usb"
|
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"
|
LABEL="end"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user