static const |
|
| KeyMap keyMap[] = { |
| { KEY_ESC , XBMCK_ESCAPE }, |
| { KEY_1 , XBMCK_1 }, |
| { KEY_2 , XBMCK_2 }, |
| { KEY_3 , XBMCK_3 }, |
| { KEY_4 , XBMCK_4 }, |
| { KEY_5 , XBMCK_5 }, |
| { KEY_6 , XBMCK_6 }, |
| { KEY_7 , XBMCK_7 }, |
| { KEY_8 , XBMCK_8 }, |
| { KEY_9 , XBMCK_9 }, |
| { KEY_0 , XBMCK_0 }, |
| { KEY_MINUS , XBMCK_MINUS }, |
| { KEY_EQUAL , XBMCK_EQUALS }, |
| { KEY_BACKSPACE , XBMCK_BACKSPACE }, |
| { KEY_TAB , XBMCK_TAB }, |
| { KEY_Q , XBMCK_q }, |
| { KEY_W , XBMCK_w }, |
| { KEY_E , XBMCK_e }, |
| { KEY_R , XBMCK_r }, |
| { KEY_T , XBMCK_t }, |
| { KEY_Y , XBMCK_y }, |
| { KEY_U , XBMCK_u }, |
| { KEY_I , XBMCK_i }, |
| { KEY_O , XBMCK_o }, |
| { KEY_P , XBMCK_p }, |
| { KEY_LEFTBRACE , XBMCK_LEFTBRACKET }, |
| { KEY_RIGHTBRACE , XBMCK_RIGHTBRACKET}, |
| { KEY_ENTER , XBMCK_RETURN }, |
| { KEY_LEFTCTRL , XBMCK_LCTRL }, |
| { KEY_A , XBMCK_a }, |
| { KEY_S , XBMCK_s }, |
| { KEY_D , XBMCK_d }, |
| { KEY_F , XBMCK_f }, |
| { KEY_G , XBMCK_g }, |
| { KEY_H , XBMCK_h }, |
| { KEY_J , XBMCK_j }, |
| { KEY_K , XBMCK_k }, |
| { KEY_L , XBMCK_l }, |
| { KEY_SEMICOLON , XBMCK_SEMICOLON }, |
| { KEY_APOSTROPHE , XBMCK_QUOTE }, |
| { KEY_GRAVE , XBMCK_BACKQUOTE }, |
| { KEY_LEFTSHIFT , XBMCK_LSHIFT }, |
| { KEY_BACKSLASH , XBMCK_BACKSLASH }, |
| { KEY_Z , XBMCK_z }, |
| { KEY_X , XBMCK_x }, |
| { KEY_C , XBMCK_c }, |
| { KEY_V , XBMCK_v }, |
| { KEY_B , XBMCK_b }, |
| { KEY_N , XBMCK_n }, |
| { KEY_M , XBMCK_m }, |
| { KEY_COMMA , XBMCK_COMMA }, |
| { KEY_DOT , XBMCK_PERIOD }, |
| { KEY_SLASH , XBMCK_SLASH }, |
| { KEY_RIGHTSHIFT , XBMCK_RSHIFT }, |
| { KEY_KPASTERISK , XBMCK_KP_MULTIPLY }, |
| { KEY_LEFTALT , XBMCK_LALT }, |
| { KEY_SPACE , XBMCK_SPACE }, |
| { KEY_CAPSLOCK , XBMCK_CAPSLOCK }, |
| { KEY_F1 , XBMCK_F1 }, |
| { KEY_F2 , XBMCK_F2 }, |
| { KEY_F3 , XBMCK_F3 }, |
| { KEY_F4 , XBMCK_F4 }, |
| { KEY_F5 , XBMCK_F5 }, |
| { KEY_F6 , XBMCK_F6 }, |
| { KEY_F7 , XBMCK_F7 }, |
| { KEY_F8 , XBMCK_F8 }, |
| { KEY_F9 , XBMCK_F9 }, |
| { KEY_F10 , XBMCK_F10 }, |
| { KEY_NUMLOCK , XBMCK_NUMLOCK }, |
| { KEY_SCROLLLOCK , XBMCK_SCROLLOCK }, |
| { KEY_KP7 , XBMCK_KP7 }, |
| { KEY_KP8 , XBMCK_KP8 }, |
| { KEY_KP9 , XBMCK_KP9 }, |
| { KEY_KPMINUS , XBMCK_KP_MINUS }, |
| { KEY_KP4 , XBMCK_KP4 }, |
| { KEY_KP5 , XBMCK_KP5 }, |
| { KEY_KP6 , XBMCK_KP6 }, |
| { KEY_KPPLUS , XBMCK_KP_PLUS }, |
| { KEY_KP1 , XBMCK_KP1 }, |
| { KEY_KP2 , XBMCK_KP2 }, |
| { KEY_KP3 , XBMCK_KP3 }, |
| { KEY_KP0 , XBMCK_KP0 }, |
| { KEY_KPDOT , XBMCK_KP_PERIOD }, |
| { 84 , XBMCK_BACKSLASH }, |
| { 85 , XBMCK_F13 }, |
| { 86 , XBMCK_LESS }, |
| { KEY_F11 , XBMCK_F11 }, |
| { KEY_F12 , XBMCK_F12 }, |
| { 89 , XBMCK_F14 }, |
| { 90 , XBMCK_F15 }, |
| { KEY_KPENTER , XBMCK_KP_ENTER }, |
| { KEY_RIGHTCTRL , XBMCK_RCTRL }, |
| { KEY_KPSLASH , XBMCK_KP_DIVIDE }, |
| { KEY_SYSRQ , XBMCK_PRINT }, |
| { KEY_RIGHTALT , XBMCK_MODE }, |
| { KEY_HOME , XBMCK_HOME }, |
| { KEY_UP , XBMCK_UP }, |
| { KEY_PAGEUP , XBMCK_PAGEUP }, |
| { KEY_LEFT , XBMCK_LEFT }, |
| { KEY_RIGHT , XBMCK_RIGHT }, |
| { KEY_END , XBMCK_END }, |
| { KEY_DOWN , XBMCK_DOWN }, |
| { KEY_PAGEDOWN , XBMCK_PAGEDOWN }, |
| { KEY_INSERT , XBMCK_INSERT }, |
| { KEY_DELETE , XBMCK_DELETE }, |
| { KEY_MUTE , XBMCK_VOLUME_MUTE }, |
| { KEY_VOLUMEDOWN , XBMCK_VOLUME_DOWN }, |
| { KEY_VOLUMEUP , XBMCK_VOLUME_UP }, |
| { KEY_POWER , XBMCK_POWER }, |
| { KEY_SLEEP , XBMCK_POWER }, |
| { KEY_KPEQUAL , XBMCK_KP_EQUALS }, |
| { KEY_PAUSE , XBMCK_PAUSE }, |
| { KEY_PAUSECD , XBMCK_PAUSE }, |
| { KEY_LEFTMETA , XBMCK_LMETA }, |
| { KEY_RIGHTMETA , XBMCK_RMETA }, |
| { KEY_COMPOSE , XBMCK_LSUPER }, |
| { KEY_STOP , XBMCK_MEDIA_STOP }, |
| { KEY_HELP , XBMCK_HELP }, |
| { KEY_MENU , XBMCK_MENU }, |
| { KEY_CLOSECD , XBMCK_EJECT }, |
| { KEY_EJECTCD , XBMCK_EJECT }, |
| { KEY_EJECTCLOSECD , XBMCK_EJECT }, |
| { KEY_NEXTSONG , XBMCK_MEDIA_NEXT_TRACK}, |
| { KEY_PLAYPAUSE , XBMCK_MEDIA_PLAY_PAUSE}, |
| { KEY_PREVIOUSSONG , XBMCK_MEDIA_PREV_TRACK}, |
| { KEY_STOPCD , XBMCK_MEDIA_STOP }, |
| { KEY_RECORD , XBMCK_RECORD }, |
| { KEY_REWIND , XBMCK_REWIND }, |
| { KEY_PHONE , XBMCK_PHONE }, |
| { KEY_REFRESH , XBMCK_SHUFFLE }, |
| { KEY_SCROLLUP , XBMCK_PAGEUP }, |
| { KEY_SCROLLDOWN , XBMCK_PAGEDOWN }, |
| { KEY_PLAY , XBMCK_PLAY }, |
| { KEY_PLAYCD , XBMCK_PLAY }, |
| { KEY_FASTFORWARD , XBMCK_FASTFORWARD }, |
| { KEY_PRINT , XBMCK_PRINT }, |
| { KEY_QUESTION , XBMCK_HELP }, |
| { KEY_BACK , XBMCK_BACKSPACE }, |
| { KEY_ZOOM , XBMCK_ZOOM }, |
| { KEY_TEXT , XBMCK_TEXT }, |
| { KEY_FAVORITES , XBMCK_FAVORITES }, |
| { KEY_RED , XBMCK_RED }, |
| { KEY_GREEN , XBMCK_GREEN }, |
| { KEY_YELLOW , XBMCK_YELLOW }, |
| { KEY_BLUE , XBMCK_BLUE }, |
| { KEY_HOMEPAGE , XBMCK_HOMEPAGE }, |
| { KEY_MAIL , XBMCK_LAUNCH_MAIL }, |
| { KEY_SEARCH , XBMCK_BROWSER_SEARCH}, |
| { KEY_FILE , XBMCK_LAUNCH_FILE_BROWSER}, |
| { KEY_SELECT , XBMCK_RETURN }, |
| { KEY_CONFIG , XBMCK_CONFIG }, |
| { KEY_EPG , XBMCK_EPG }, |
| // The Little Black Box Remote Additions |
| { 384 , XBMCK_LEFT }, // Red |
| { 378 , XBMCK_RIGHT }, // Green |
| { 381 , XBMCK_UP }, // Yellow |
| { 366 , XBMCK_DOWN }, // Blue |
| // Wiimote controller Additions |
| { 304 , XBMCK_RETURN }, // A |
| { 305 , XBMCK_ESCAPE }, // B |
| { 412 , XBMCK_KP_MINUS }, // - |
| { 316 , XBMCK_HOME }, // Home |
| { 407 , XBMCK_KP_PLUS }, // + |
| { 257 , XBMCK_1 }, // 1 |
| { 258 , XBMCK_2 }, // 2 |
| }; |
|