Skip to content

Commit

Permalink
- rcinput: add some new keys ...
Browse files Browse the repository at this point in the history
and translate KEY_VIDEO (list-key) to RC_favorites for ARM_HARDWARE
  • Loading branch information
vanhofen committed Oct 27, 2017
1 parent 1b5b18c commit 92fe697
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/driver/rcinput.cpp
Expand Up @@ -1682,6 +1682,12 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key)
return "pos";
case RC_sleep:
return "sleep";
case RC_nextsong:
return "next song";
case RC_previoussong:
return "previous song";
case RC_bookmarks:
return "bookmarks";
default:
printf("unknown key: %d (0x%x) \n", key, key);
return "unknown";
Expand Down Expand Up @@ -1725,10 +1731,14 @@ int CRCInput::translate(int code)
return RC_play;
case KEY_PROGRAM:
return RC_timer;
case KEY_NEXTSONG:
return RC_next;
case KEY_PREVIOUSSONG:
return RC_prev;
case KEY_CHANNELUP:
return RC_page_up;
case KEY_CHANNELDOWN:
return RC_page_down;
#ifdef HAVE_ARM_HARDWARE
case KEY_VIDEO:
return RC_favorites;
#endif
#ifdef HAVE_AZBOX_HARDWARE
case KEY_HOME:
return RC_favorites;
Expand All @@ -1738,10 +1748,6 @@ int CRCInput::translate(int code)
return RC_record;
case KEY_PLAY:
return RC_pause;
case KEY_CHANNELUP:
return RC_page_up;
case KEY_CHANNELDOWN:
return RC_page_down;
#endif
default:
break;
Expand Down
3 changes: 3 additions & 0 deletions src/driver/rcinput.h
Expand Up @@ -249,6 +249,9 @@ class CRCInput
RC_sub = KEY_SUBTITLE,
RC_pos = KEY_MOVE,
RC_sleep = KEY_SLEEP,
RC_nextsong = KEY_NEXTSONG,
RC_previoussong = KEY_PREVIOUSSONG,
RC_bookmarks = KEY_BOOKMARKS,

RC_power_on = KEY_POWERON,
RC_power_off = KEY_POWEROFF,
Expand Down

0 comments on commit 92fe697

Please sign in to comment.