From b3cfa3befd9bd6c8a9ebf0e268d91900ac9e278b Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Mon, 14 Oct 2013 08:26:21 +0200 Subject: [PATCH] Add addtional remote codes for MCE remotes as suggested by dingo35 --- remotelinux.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/remotelinux.cc b/remotelinux.cc index 8b6bae7..7726238 100644 --- a/remotelinux.cc +++ b/remotelinux.cc @@ -319,8 +319,10 @@ UCHAR RemoteLinux::TranslateHWCFixed(ULLONG code) case W_G_HCW(W_HCW_KC,KEY_RIGHT): return RIGHT; case W_G_HCW(W_HCW_KC,KEY_M): + case W_G_HCW(W_HCW_KC,KEY_MEDIA): return MENU; case W_G_HCW(W_HCW_KC,KEY_BACKSPACE): + case W_G_HCW(W_HCW_KC,KEY_EXIT): return BACK; case W_G_HCW(W_HCW_KC,KEY_ENTER): case W_G_HCW(W_HCW_KC,KEY_SPACE): @@ -345,6 +347,7 @@ UCHAR RemoteLinux::TranslateHWCFixed(ULLONG code) case W_G_HCW(W_HCW_CEC,CEC_USER_CONTROL_CODE_SELECT): case W_G_HCW(W_HCW_CEC,CEC_USER_CONTROL_CODE_AN_RETURN): return OK; + case W_G_HCW(W_HCW_KC,KEY_SLEEP): case W_G_HCW(W_HCW_KC,KEY_POWER): case W_G_HCW(W_HCW_KC,KEY_ESC): case W_G_HCW(W_HCW_CEC,CEC_USER_CONTROL_CODE_POWER): @@ -444,8 +447,10 @@ void RemoteLinux::InitHWCListwithDefaults() translist[W_G_HCW(W_HCW_KC,KEY_PREVIOUS)] = SKIPBACK; translist[W_G_HCW(W_HCW_KC,KEY_F1)] = SKIPBACK; translist[W_G_HCW(W_HCW_KC,KEY_FORWARD)] = FORWARD; + translist[W_G_HCW(W_HCW_KC,KEY_FASTFORWARD)] = FORWARD; translist[W_G_HCW(W_HCW_KC,KEY_F)] = FORWARD; translist[W_G_HCW(W_HCW_KC,KEY_BACK)] = REVERSE; + translist[W_G_HCW(W_HCW_KC,KEY_REWIND)] = REVERSE; translist[W_G_HCW(W_HCW_KC,KEY_T)] = REVERSE; translist[W_G_HCW(W_HCW_KC,KEY_MUTE)] = MUTE; translist[W_G_HCW(W_HCW_KC,KEY_F8)] = MUTE; @@ -660,6 +665,7 @@ void RemoteLinux::InitKeymap() NAMETRICK(KEY_,COMPUTER); NAMETRICK(KEY_,BACK); NAMETRICK(KEY_,FORWARD); + NAMETRICK(KEY_,FASTFORWARD); NAMETRICK(KEY_,CLOSECD); NAMETRICK(KEY_,EJECTCD); NAMETRICK(KEY_,EJECTCLOSECD); @@ -732,6 +738,7 @@ void RemoteLinux::InitKeymap() NAMETRICK(KEY_,ZOOMRESET); NAMETRICK(KEY_,DOLLAR); NAMETRICK(KEY_,EURO); + NAMETRICK(KEY_,MEDIA); NAMETRICK(KEY_,FRAMEBACK); NAMETRICK(KEY_,FRAMEFORWARD); NAMETRICK(KEY_,CONTEXT_MENU); -- 2.39.5