From ae76d1fc5335862fa8b4b342dbfcc562e4e87524 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 23 Oct 2015 20:26:40 +0200 Subject: [PATCH] kodi: add support for colored keys Signed-off-by: Stephan Raue --- .../kodi/patches/kodi-999.35-color_keys.patch | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 packages/mediacenter/kodi/patches/kodi-999.35-color_keys.patch diff --git a/packages/mediacenter/kodi/patches/kodi-999.35-color_keys.patch b/packages/mediacenter/kodi/patches/kodi-999.35-color_keys.patch new file mode 100644 index 0000000000..cf1770c7ba --- /dev/null +++ b/packages/mediacenter/kodi/patches/kodi-999.35-color_keys.patch @@ -0,0 +1,96 @@ +diff -Naur kodi-15.2-02e7013/system/keymaps/keyboard.xml kodi-15.2-02e7013.patch/system/keymaps/keyboard.xml +--- kodi-15.2-02e7013/system/keymaps/keyboard.xml 2015-10-23 12:07:37.075186539 +0200 ++++ kodi-15.2-02e7013.patch/system/keymaps/keyboard.xml 2015-10-23 14:36:39.556246298 +0200 +@@ -104,6 +104,11 @@ + ActivateWindow(RadioChannels) + ActivateWindow(TVRecordings) + ActivateWindow(TVTimers) ++ ++ ActivateWindow(TVChannels) ++ ActivateWindow(MyVideos) ++ ActivateWindow(MyMusic) ++ ActivateWindow(MyPictures) + + Back + +@@ -184,12 +189,20 @@ + + Delete + Rename ++ Red ++ Green ++ Yellow ++ Blue + + + + + Delete + Rename ++ Red ++ Green ++ Yellow ++ Blue + + + +@@ -201,12 +214,20 @@ + + Delete + Rename ++ Red ++ Green ++ Yellow ++ Blue + + + + + Delete + Rename ++ Red ++ Green ++ Yellow ++ Blue + + + +@@ -526,6 +547,10 @@ + + Back + Back ++ Red ++ Green ++ Yellow ++ Blue + + + +@@ -597,9 +622,13 @@ + + + Red ++ Red + Green ++ Green + Yellow ++ Yellow + Blue ++ Blue + + + +diff -Naur kodi-15.2-02e7013/xbmc/input/linux/LinuxInputDevices.cpp kodi-15.2-02e7013.patch/xbmc/input/linux/LinuxInputDevices.cpp +--- kodi-15.2-02e7013/xbmc/input/linux/LinuxInputDevices.cpp 2015-10-23 12:07:36.796186034 +0200 ++++ kodi-15.2-02e7013.patch/xbmc/input/linux/LinuxInputDevices.cpp 2015-10-23 14:42:02.251577960 +0200 +@@ -256,6 +256,10 @@ + { KEY_ZOOM , XBMCK_ZOOM }, + { KEY_TEXT , XBMCK_TEXT }, + { KEY_FAVORITES , XBMCK_FAVORITES }, ++ { KEY_RED , XBMCK_RED }, ++ { KEY_GREEN , XBMCK_GREEN }, ++ { KEY_YELLOW , XBMCK_YELLOW }, ++ { KEY_BLUE , XBMCK_BLUE }, + // The Little Black Box Remote Additions + { 384 , XBMCK_LEFT }, // Red + { 378 , XBMCK_RIGHT }, // Green