From fc5e27be5643c0df246f4ad93926dbc6f27d86f0 Mon Sep 17 00:00:00 2001 From: vdrfan Date: Sat, 19 Dec 2009 18:08:06 +0000 Subject: changed: added remote buttons 'subtitle' and 'language' to FullscreenVideo section git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25859 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- system/keymaps/remote.xml | 2 ++ xbmc/ButtonTranslator.cpp | 2 ++ xbmc/XBIRRemote.h | 3 +++ 3 files changed, 7 insertions(+) diff --git a/system/keymaps/remote.xml b/system/keymaps/remote.xml index 8dc47d1a25..07275cbc55 100644 --- a/system/keymaps/remote.xml +++ b/system/keymaps/remote.xml @@ -143,6 +143,8 @@ AspectRatio XBMC.ActivateWindow(Teletext) + ShowSubtitles + AudioNextLanguage diff --git a/xbmc/ButtonTranslator.cpp b/xbmc/ButtonTranslator.cpp index 05b984081a..bb01ec174b 100644 --- a/xbmc/ButtonTranslator.cpp +++ b/xbmc/ButtonTranslator.cpp @@ -1053,6 +1053,8 @@ uint32_t CButtonTranslator::TranslateRemoteString(const char *szButton) else if (strButton.Equals("green")) buttonCode = XINPUT_IR_REMOTE_GREEN; else if (strButton.Equals("yellow")) buttonCode = XINPUT_IR_REMOTE_YELLOW; else if (strButton.Equals("blue")) buttonCode = XINPUT_IR_REMOTE_BLUE; + else if (strButton.Equals("subtitle")) buttonCode = XINPUT_IR_REMOTE_SUBTITLE; + else if (strButton.Equals("language")) buttonCode = XINPUT_IR_REMOTE_LANGUAGE; else CLog::Log(LOGERROR, "Remote Translator: Can't find button %s", strButton.c_str()); return buttonCode; } diff --git a/xbmc/XBIRRemote.h b/xbmc/XBIRRemote.h index 9aa58ed5c7..aa1f2c4d2d 100644 --- a/xbmc/XBIRRemote.h +++ b/xbmc/XBIRRemote.h @@ -22,6 +22,9 @@ #define XINPUT_IR_REMOTE_SELECT 11 +#define XINPUT_IR_REMOTE_SUBTITLE 44 +#define XINPUT_IR_REMOTE_LANGUAGE 45 + #define XINPUT_IR_REMOTE_MENU 247 #define XINPUT_IR_REMOTE_BACK 216 -- cgit v1.2.3