mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
rcinput: use translation for some keys
This commit is contained in:
@@ -1723,6 +1723,8 @@ int CRCInput::translate(int code)
|
||||
{
|
||||
switch(code)
|
||||
{
|
||||
case KEY_EXIT:
|
||||
return RC_home;
|
||||
case 0x100: // FIXME -- needed?
|
||||
return RC_up;
|
||||
case 0x101: // FIXME -- needed?
|
||||
@@ -1734,6 +1736,8 @@ int CRCInput::translate(int code)
|
||||
case KEY_CHANNELDOWN:
|
||||
return RC_page_down;
|
||||
#ifdef HAVE_ARM_HARDWARE
|
||||
case KEY_SWITCHVIDEOMODE:
|
||||
return RC_mode;
|
||||
case KEY_VIDEO:
|
||||
return RC_favorites;
|
||||
case KEY_FASTFORWARD:
|
||||
|
@@ -202,7 +202,7 @@ class CRCInput
|
||||
RC_plus = KEY_VOLUMEUP, /* /include/linux/input.h: #define KEY_VOLUMEUP 115 */
|
||||
RC_standby = KEY_POWER, /* /include/linux/input.h: #define KEY_POWER 116 */
|
||||
RC_help = KEY_HELP, /* /include/linux/input.h: #define KEY_HELP 138 */
|
||||
RC_home = KEY_EXIT, /* /include/linux/input.h: #define KEY_HOME 102 */
|
||||
RC_home = KEY_HOME, /* /include/linux/input.h: #define KEY_HOME 102 */
|
||||
RC_setup = KEY_MENU, /* /include/linux/input.h: #define KEY_SETUP 141 */
|
||||
RC_topleft = KEY_TOPLEFT,
|
||||
RC_topright = KEY_TOPRIGHT,
|
||||
@@ -241,11 +241,8 @@ class CRCInput
|
||||
RC_rewind = KEY_REWIND,
|
||||
RC_stop = KEY_STOP,
|
||||
RC_timeshift = KEY_TIME,
|
||||
#if BOXMODEL_BRE2ZE4K
|
||||
RC_mode = KEY_SWITCHVIDEOMODE,
|
||||
#else
|
||||
RC_mode = KEY_MODE,
|
||||
#endif
|
||||
RC_switchvideomode = KEY_SWITCHVIDEOMODE,
|
||||
RC_games = KEY_GAMES,
|
||||
RC_next = KEY_NEXT,
|
||||
RC_prev = KEY_PREVIOUS,
|
||||
|
Reference in New Issue
Block a user