From d3c37d9bad03d27de38d5623636a740671624c38 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 6 Dec 2020 22:31:07 +0100 Subject: [PATCH] rcinput: add KEY_TV2; mapped to RC_tv Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/0040ec2869ef1eec81187df2dcee23e3b39064a8 Author: vanhofen Date: 2020-12-06 (Sun, 06 Dec 2020) Origin message was: ------------------ - rcinput: add KEY_TV2; mapped to RC_tv ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/rcinput.cpp | 4 ++++ src/driver/rcinput.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 2de057304..88148612b 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1633,6 +1633,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: @@ -1758,6 +1760,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; diff --git a/src/driver/rcinput.h b/src/driver/rcinput.h index dd7d498b2..44472235e 100644 --- a/src/driver/rcinput.h +++ b/src/driver/rcinput.h @@ -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,