Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void GLFbPC::initKeys()
- {
- mSpecialMap[GLUT_KEY_UP] = KEY_UP;
- mSpecialMap[GLUT_KEY_DOWN] = KEY_DOWN;
- mSpecialMap[GLUT_KEY_LEFT] = KEY_LEFT;
- mSpecialMap[GLUT_KEY_RIGHT] = KEY_RIGHT;
- mSpecialMap[GLUT_KEY_F1] = KEY_RED;
- mSpecialMap[GLUT_KEY_F2] = KEY_GREEN;
- mSpecialMap[GLUT_KEY_F3] = KEY_YELLOW;
- mSpecialMap[GLUT_KEY_F4] = KEY_BLUE;
- mSpecialMap[GLUT_KEY_F5] = KEY_RECORD;
- mSpecialMap[GLUT_KEY_F6] = KEY_PLAY;
- mSpecialMap[GLUT_KEY_F7] = KEY_PAUSE;
- mSpecialMap[GLUT_KEY_F9] = KEY_STOP;
- mSpecialMap[GLUT_KEY_F9] = KEY_FORWARD;
- mSpecialMap[GLUT_KEY_F10] = KEY_REWIND;
- mSpecialMap[GLUT_KEY_F11] = KEY_NEXT;
- mSpecialMap[GLUT_KEY_F12] = KEY_PREVIOUS;
- mSpecialMap[GLUT_KEY_PAGE_UP] = KEY_PAGEUP;
- mSpecialMap[GLUT_KEY_PAGE_DOWN] = KEY_PAGEDOWN;
- mKeyMap['0'] = KEY_0;
- mKeyMap['1'] = KEY_1;
- mKeyMap['2'] = KEY_2;
- mKeyMap['3'] = KEY_3;
- mKeyMap['4'] = KEY_4;
- mKeyMap['5'] = KEY_5;
- mKeyMap['6'] = KEY_6;
- mKeyMap['7'] = KEY_7;
- mKeyMap['8'] = KEY_8;
- mKeyMap['9'] = KEY_9;
- mKeyMap[0x0d] = KEY_OK;
- mKeyMap[0x1b] = KEY_EXIT;
- mKeyMap['-'] = KEY_VOLUMEDOWN;
- mKeyMap['.'] = KEY_MUTE;
- mKeyMap['+'] = KEY_VOLUMEUP;
- mKeyMap['a'] = KEY_AUDIO;
- mKeyMap['e'] = KEY_EPG;
- // ['f'] is reserved to toggle fullscreen;
- mKeyMap['g'] = KEY_GAMES;
- mKeyMap['h'] = KEY_HELP;
- mKeyMap['i'] = KEY_INFO;
- mKeyMap['m'] = KEY_MENU;
- mKeyMap['p'] = KEY_POWER;
- mKeyMap['r'] = KEY_RADIO;
- mKeyMap['s'] = KEY_SUBTITLE;
- mKeyMap['t'] = KEY_TV;
- mKeyMap['v'] = KEY_VIDEO;
- mKeyMap['z'] = KEY_SLEEP;
- /* shift keys */
- mKeyMap['F'] = KEY_FAVORITES;
- mKeyMap['M'] = KEY_MODE;
- mKeyMap['S'] = KEY_SAT;
- mKeyMap['T'] = KEY_TEXT;
- mKeyMap['W'] = KEY_WWW;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement