rcinput: use translation for some keys

This commit is contained in:
GetAway
2018-12-05 14:08:48 +01:00
parent 72b33c9520
commit db31e98c8c
5 changed files with 15 additions and 6 deletions

View File

@@ -885,11 +885,15 @@ unsigned int revert_translate(unsigned int code)
{
switch(code)
{
case RC_home:
return KEY_EXIT;
case RC_page_up:
return KEY_CHANNELUP;
case RC_page_down:
return KEY_CHANNELDOWN;
#ifdef HAVE_ARM_HARDWARE
case RC_mode:
return KEY_SWITCHVIDEOMODE;
case RC_play:
case RC_pause:
return KEY_PLAYPAUSE;