- rcinput: add KEY_TV2; mapped to RC_tv

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-12-06 22:31:07 +01:00
committed by Thilo Graf
parent ece4036a4c
commit 1aa288fb38
2 changed files with 5 additions and 0 deletions

View File

@@ -1629,6 +1629,8 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key)
return "video";
case RC_tv:
return "tv";
case RC_tv2:
return "tv2";
case RC_radio:
return "radio";
case RC_text:
@@ -1756,6 +1758,8 @@ int CRCInput::translate(int code)
#if BOXMODEL_HD51 || BOXMODEL_HD60 || BOXMODEL_HD61 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7
case KEY_VIDEO:
return RC_favorites;
case KEY_TV2:
return RC_tv;
#elif BOXMODEL_OSMIO4K || BOXMODEL_OSMIO4KPLUS
case KEY_VIDEO:
return RC_mode;

View File

@@ -226,6 +226,7 @@ class CRCInput
RC_audio = KEY_AUDIO,
RC_video = KEY_VIDEO,
RC_tv = KEY_TV,
RC_tv2 = KEY_TV2,
RC_radio = KEY_RADIO,
RC_text = KEY_TEXT,
RC_info = KEY_INFO,