rcinput: add RC_playpause key

Origin commit data
------------------
Commit: b162d9505f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-19 (Tue, 19 Dec 2017)

Origin message was:
------------------
- rcinput: add RC_playpause key
This commit is contained in:
vanhofen
2017-12-19 10:58:44 +01:00
parent acbda7d87d
commit 314487f130
2 changed files with 3 additions and 2 deletions

View File

@@ -1692,6 +1692,8 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key)
return "bookmarks";
case RC_program:
return "program";
case RC_playpause:
return "play / pause";
default:
printf("unknown key: %d (0x%x) \n", key, key);
return "unknown";
@@ -1731,8 +1733,6 @@ int CRCInput::translate(int code)
return RC_up;
case 0x101: // FIXME -- needed?
return RC_down;
case KEY_PLAYPAUSE:
return RC_play;
case KEY_CHANNELUP:
return RC_page_up;
case KEY_CHANNELDOWN:

View File

@@ -253,6 +253,7 @@ class CRCInput
RC_previoussong = KEY_PREVIOUSSONG,
RC_bookmarks = KEY_BOOKMARKS,
RC_program = KEY_PROGRAM,
RC_playpause = KEY_PLAYPAUSE,
RC_power_on = KEY_POWERON,
RC_power_off = KEY_POWEROFF,