From affa06d60b1100f83c08a3b8d41b2effd27fb04f Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 27 Oct 2017 23:43:44 +0200 Subject: [PATCH] rcinput: add KEY_PROGRAM Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/282db3025afd152597e3907835156ee797d3db3b Author: vanhofen Date: 2017-10-27 (Fri, 27 Oct 2017) Origin message was: ------------------ - rcinput: add KEY_PROGRAM --- src/driver/rcinput.cpp | 4 ++-- src/driver/rcinput.h | 1 + src/neutrino.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 1dfa519d4..37f556a0b 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1688,6 +1688,8 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key) return "previous song"; case RC_bookmarks: return "bookmarks"; + case RC_program: + return "program"; default: printf("unknown key: %d (0x%x) \n", key, key); return "unknown"; @@ -1729,8 +1731,6 @@ int CRCInput::translate(int code) return RC_down; case KEY_PLAYPAUSE: return RC_play; - case KEY_PROGRAM: - return RC_timer; case KEY_CHANNELUP: return RC_page_up; case KEY_CHANNELDOWN: diff --git a/src/driver/rcinput.h b/src/driver/rcinput.h index 44692a4b2..46447aa85 100644 --- a/src/driver/rcinput.h +++ b/src/driver/rcinput.h @@ -252,6 +252,7 @@ class CRCInput RC_nextsong = KEY_NEXTSONG, RC_previoussong = KEY_PREVIOUSSONG, RC_bookmarks = KEY_BOOKMARKS, + RC_program = KEY_PROGRAM, RC_power_on = KEY_POWERON, RC_power_off = KEY_POWEROFF, diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 938449d5b..c27184cb9 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -3015,7 +3015,7 @@ void CNeutrinoApp::RealRun() showInfo(); } } - else if (msg == CRCInput::RC_timer) + else if (msg == CRCInput::RC_timer || msg == CRCInput::RC_program) { CTimerList Timerlist; Timerlist.exec(NULL, "");