-static void initSDLKeyTable(void)
-{
- memset(KeyTable, 0xFF, sizeof (KeyTable));
- KeyTable[SDLK_BACKSPACE] = MAC_DELETE_KEY;
- KeyTable[SDLK_TAB] = MAC_TAB_KEY;
- KeyTable[SDLK_RETURN] = MAC_RETURN_KEY;
- KeyTable[SDLK_ESCAPE] = MAC_ESCAPE_KEY;
- KeyTable[SDLK_SPACE] = MAC_SPACE_KEY;
- KeyTable[SDLK_PAGEUP] = MAC_PAGE_UP_KEY;
- KeyTable[SDLK_PAGEDOWN] = MAC_PAGE_DOWN_KEY;
- KeyTable[SDLK_END] = MAC_END_KEY;
- KeyTable[SDLK_HOME] = MAC_HOME_KEY;
- KeyTable[SDLK_LEFT] = MAC_ARROW_LEFT_KEY;
- KeyTable[SDLK_UP] = MAC_ARROW_UP_KEY;
- KeyTable[SDLK_RIGHT] = MAC_ARROW_RIGHT_KEY;
- KeyTable[SDLK_DOWN] = MAC_ARROW_DOWN_KEY;
- KeyTable[SDLK_INSERT] = MAC_INSERT_KEY;
- KeyTable[SDLK_DELETE] = MAC_DEL_KEY;
- KeyTable[SDLK_0] = MAC_0_KEY;
- KeyTable[SDLK_1] = MAC_1_KEY;
- KeyTable[SDLK_2] = MAC_2_KEY;
- KeyTable[SDLK_3] = MAC_3_KEY;
- KeyTable[SDLK_4] = MAC_4_KEY;
- KeyTable[SDLK_5] = MAC_5_KEY;
- KeyTable[SDLK_6] = MAC_6_KEY;
- KeyTable[SDLK_7] = MAC_7_KEY;
- KeyTable[SDLK_8] = MAC_8_KEY;
- KeyTable[SDLK_9] = MAC_9_KEY;
- KeyTable[SDLK_a] = MAC_A_KEY;
- KeyTable[SDLK_b] = MAC_B_KEY;
- KeyTable[SDLK_c] = MAC_C_KEY;
- KeyTable[SDLK_d] = MAC_D_KEY;
- KeyTable[SDLK_e] = MAC_E_KEY;
- KeyTable[SDLK_f] = MAC_F_KEY;
- KeyTable[SDLK_g] = MAC_G_KEY;
- KeyTable[SDLK_h] = MAC_H_KEY;
- KeyTable[SDLK_i] = MAC_I_KEY;
- KeyTable[SDLK_j] = MAC_J_KEY;
- KeyTable[SDLK_k] = MAC_K_KEY;
- KeyTable[SDLK_l] = MAC_L_KEY;
- KeyTable[SDLK_m] = MAC_M_KEY;
- KeyTable[SDLK_n] = MAC_N_KEY;
- KeyTable[SDLK_o] = MAC_O_KEY;
- KeyTable[SDLK_p] = MAC_P_KEY;
- KeyTable[SDLK_q] = MAC_Q_KEY;
- KeyTable[SDLK_r] = MAC_R_KEY;
- KeyTable[SDLK_s] = MAC_S_KEY;
- KeyTable[SDLK_t] = MAC_T_KEY;
- KeyTable[SDLK_u] = MAC_U_KEY;
- KeyTable[SDLK_v] = MAC_V_KEY;
- KeyTable[SDLK_w] = MAC_W_KEY;
- KeyTable[SDLK_x] = MAC_X_KEY;
- KeyTable[SDLK_y] = MAC_Y_KEY;
- KeyTable[SDLK_z] = MAC_Z_KEY;
- KeyTable[SDLK_KP0] = MAC_NUMPAD_0_KEY;
- KeyTable[SDLK_KP1] = MAC_NUMPAD_1_KEY;
- KeyTable[SDLK_KP2] = MAC_NUMPAD_2_KEY;
- KeyTable[SDLK_KP3] = MAC_NUMPAD_3_KEY;
- KeyTable[SDLK_KP4] = MAC_NUMPAD_4_KEY;
- KeyTable[SDLK_KP5] = MAC_NUMPAD_5_KEY;
- KeyTable[SDLK_KP6] = MAC_NUMPAD_6_KEY;
- KeyTable[SDLK_KP7] = MAC_NUMPAD_7_KEY;
- KeyTable[SDLK_KP8] = MAC_NUMPAD_8_KEY;
- KeyTable[SDLK_KP9] = MAC_NUMPAD_9_KEY;
- KeyTable[SDLK_KP_MULTIPLY] = MAC_NUMPAD_ASTERISK_KEY;
- KeyTable[SDLK_KP_PLUS] = MAC_NUMPAD_PLUS_KEY;
- KeyTable[SDLK_KP_ENTER] = MAC_NUMPAD_ENTER_KEY;
- KeyTable[SDLK_KP_MINUS] = MAC_NUMPAD_MINUS_KEY;
- KeyTable[SDLK_KP_PERIOD] = MAC_NUMPAD_PERIOD_KEY;
- KeyTable[SDLK_KP_DIVIDE] = MAC_NUMPAD_SLASH_KEY;
- KeyTable[SDLK_F1] = MAC_F1_KEY;
- KeyTable[SDLK_F2] = MAC_F2_KEY;
- KeyTable[SDLK_F3] = MAC_F3_KEY;
- KeyTable[SDLK_F4] = MAC_F4_KEY;
- KeyTable[SDLK_F5] = MAC_F5_KEY;
- KeyTable[SDLK_F6] = MAC_F6_KEY;
- KeyTable[SDLK_F7] = MAC_F7_KEY;
- KeyTable[SDLK_F8] = MAC_F8_KEY;
- KeyTable[SDLK_F9] = MAC_F9_KEY;
- KeyTable[SDLK_F10] = MAC_F10_KEY;
- KeyTable[SDLK_F11] = MAC_F11_KEY;
- KeyTable[SDLK_F12] = MAC_F12_KEY;
- KeyTable[SDLK_SEMICOLON] = MAC_SEMICOLON_KEY;
- KeyTable[SDLK_PLUS] = MAC_PLUS_KEY;
- KeyTable[SDLK_COMMA] = MAC_COMMA_KEY;
- KeyTable[SDLK_MINUS] = MAC_MINUS_KEY;
- KeyTable[SDLK_PERIOD] = MAC_PERIOD_KEY;
- KeyTable[SDLK_SLASH] = MAC_SLASH_KEY;
- KeyTable[SDLK_BACKQUOTE] = MAC_TILDE_KEY;
- KeyTable[SDLK_LEFTBRACKET] = MAC_LEFTBRACKET_KEY;
- KeyTable[SDLK_BACKSLASH] = MAC_BACKSLASH_KEY;
- KeyTable[SDLK_RIGHTBRACKET] = MAC_RIGHTBRACKET_KEY;
- KeyTable[SDLK_QUOTE] = MAC_APOSTROPHE_KEY;