11 dword KeyFlags, NativeKeyCode, TranslatedKeyCode;
17 KeyFlags = param1 & 0xfffe0000;
18 NativeKeyCode = param1 & 0x0001ffff;
19 TranslatedKeyCode = NativeKeyCode;
27 case RKEY_Ab: TranslatedKeyCode = 0x10049;
break;
28 case RKEY_Bookmark: TranslatedKeyCode = RKEY_VolDown;
break;
29 case RKEY_Goto: TranslatedKeyCode = RKEY_ChUp;
break;
30 case RKEY_Check: TranslatedKeyCode = RKEY_ChDown;
break;
31 case RKEY_NewF1: TranslatedKeyCode = RKEY_VolUp;
break;
32 case RKEY_ChUp: TranslatedKeyCode = RKEY_VFormat;
break;
33 case RKEY_VolUp: TranslatedKeyCode = RKEY_NewF1;
break;
34 case RKEY_VolDown: TranslatedKeyCode = RKEY_Bookmark;
break;
35 case 0x10049: TranslatedKeyCode = RKEY_Goto;
break;
36 case 0x1004a: TranslatedKeyCode = RKEY_Check;
break;
44 case RKEY_F1: TranslatedKeyCode = RKEY_NewF1;
break;
51 return (ret ? NativeKeyCode | KeyFlags : 0);
74 if(ToppyInfo->
SysID == TAP_GetSystemId())
90 if(Enable && (TMSTAPTaskTable[
TAP_TableIndex].TAP_EventHandler == (dword)EventHandler))
dword FIS_vTAPTable(void)
dword KeyTranslateHook(word event, dword param1, dword param2)
bool KeyTranslate(bool Enable, void *EventHandler)
dword(* Original_TAP_EventHandler)(word event, dword param1, dword param2)
bool LoadFirmwareDat(tFWDATHeader **FWDatHeader, tToppyInfo **ToppyInfo, tFWInfo **FWInfo)