rcinput: add KEY_PROGRAM

Origin commit data
------------------
Commit: 282db3025a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-27 (Fri, 27 Oct 2017)

Origin message was:
------------------
- rcinput: add KEY_PROGRAM
This commit is contained in:
vanhofen
2017-10-27 23:43:44 +02:00
parent 2e240b18da
commit affa06d60b
3 changed files with 4 additions and 3 deletions

View File

@@ -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:

View File

@@ -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,

View File

@@ -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, "");