Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cec: map the data (teletext) button to XINPUT_IR_REMOTE_TELETEXT and …

…subpicture to XINPUT_IR_REMOTE_SUBTITLE
  • Loading branch information...
commit cedf37ae9f469c87f218d254e496c493ca62a791 1 parent bcef616
@opdenkamp opdenkamp authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 xbmc/peripherals/devices/PeripheralCecAdapter.cpp
View
10 xbmc/peripherals/devices/PeripheralCecAdapter.cpp
@@ -1035,6 +1035,14 @@ void CPeripheralCecAdapter::PushCecKeypress(const cec_keypress &key)
xbmcKey.iButton = XINPUT_IR_REMOTE_TITLE; // context menu
PushCecKeypress(xbmcKey);
break;
+ case CEC_USER_CONTROL_CODE_DATA:
+ xbmcKey.iButton = XINPUT_IR_REMOTE_TELETEXT;
+ PushCecKeypress(xbmcKey);
+ break;
+ case CEC_USER_CONTROL_CODE_SUB_PICTURE:
+ xbmcKey.iButton = XINPUT_IR_REMOTE_SUBTITLE;
+ PushCecKeypress(xbmcKey);
+ break;
case CEC_USER_CONTROL_CODE_POWER_ON_FUNCTION:
case CEC_USER_CONTROL_CODE_EJECT:
case CEC_USER_CONTROL_CODE_INPUT_SELECT:
@@ -1043,7 +1051,6 @@ void CPeripheralCecAdapter::PushCecKeypress(const cec_keypress &key)
case CEC_USER_CONTROL_CODE_STOP_RECORD:
case CEC_USER_CONTROL_CODE_PAUSE_RECORD:
case CEC_USER_CONTROL_CODE_ANGLE:
- case CEC_USER_CONTROL_CODE_SUB_PICTURE:
case CEC_USER_CONTROL_CODE_VIDEO_ON_DEMAND:
case CEC_USER_CONTROL_CODE_TIMER_PROGRAMMING:
case CEC_USER_CONTROL_CODE_PLAY_FUNCTION:
@@ -1060,7 +1067,6 @@ void CPeripheralCecAdapter::PushCecKeypress(const cec_keypress &key)
case CEC_USER_CONTROL_CODE_POWER_TOGGLE_FUNCTION:
case CEC_USER_CONTROL_CODE_POWER_OFF_FUNCTION:
case CEC_USER_CONTROL_CODE_F5:
- case CEC_USER_CONTROL_CODE_DATA:
case CEC_USER_CONTROL_CODE_UNKNOWN:
default:
break;
Please sign in to comment.
Something went wrong with that request. Please try again.