aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/keymaps/remote.xml2
-rw-r--r--xbmc/ButtonTranslator.cpp2
-rw-r--r--xbmc/XBIRRemote.h3
3 files changed, 7 insertions, 0 deletions
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 @@
<enter>AspectRatio</enter>
<select>AspectRatio</select>
<teletext>XBMC.ActivateWindow(Teletext)</teletext>
+ <subtitle>ShowSubtitles</subtitle>
+ <language>AudioNextLanguage</language>
</remote>
</FullscreenVideo>
<FullscreenInfo>
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