From: Lars Op den Kamp Date: Sat, 7 Apr 2012 13:11:40 +0000 (+0200) Subject: cec: added buttoncode for 'channels list' on samsung (0x96) X-Git-Tag: upstream/2.2.0~1^2~31^2~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=340ce76c689f0e52439556edfb49da07e3171114;p=deb_libcec.git cec: added buttoncode for 'channels list' on samsung (0x96) --- diff --git a/include/cectypes.h b/include/cectypes.h index 29a2e38..88eeabb 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -470,7 +470,8 @@ typedef enum cec_user_control_code CEC_USER_CONTROL_CODE_F5 = 0x75, CEC_USER_CONTROL_CODE_DATA = 0x76, CEC_USER_CONTROL_CODE_AN_RETURN = 0x91, - CEC_USER_CONTROL_CODE_MAX = 0x91, + CEC_USER_CONTROL_CODE_AN_CHANNELS_LIST = 0x96, + CEC_USER_CONTROL_CODE_MAX = 0x96, CEC_USER_CONTROL_CODE_UNKNOWN } cec_user_control_code; diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index cd60825..182f0ac 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -59,6 +59,9 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) CEC_USER_CONTROL_CODE_AN_RETURN : CEC_USER_CONTROL_CODE_EXIT; break; + case CEC_USER_CONTROL_CODE_AN_CHANNELS_LIST: + key.keycode = CEC_USER_CONTROL_CODE_AN_CHANNELS_LIST; + break; default: break; }