/* Created 01/18/01 by Keith Middlebrooks (aka Keebo) This is a demo of a level showing that it is possible to allow end users to configure an application with user defined keyboard controls. While it is quite ugly and extensive, it gets the idea across. Surely someone with a little knowledge of WDL could optimize the code, add more features, etc. I have included 10 different configurable controls but you can add your own with a little work. Press F1 to configure the controls. You must click directly on the label of the large keys (SPACE, SHIFT, ENTER) when configuring the control keys within the PANEL choose_keys. I used the same small transparent bitmap to save space / memory requirements. Known bugs / limitations: Configuring the SHIFT key causes the engine to give a read only error. The arrow keys do not function correctly when assigned to other keys. Keys can be assigned to more than one control (easily fixable). Some controls will not work with all keys - jump will not work with the END key beacuse of the formula: force.Z = strength.Z*(key_jump-KEY_END); There may be more bugs as I have not yet tested every combination possible (this was just for fun & learning after all). You are welcome to use this any way you want. All I ask is you mention me in your credits if you use this to make a multi million dollar application (yeah right). As stated below, please use your own graphics as these are horrific. BTW, I will not be held responsible for anyone pulling their hair out trying to figure out this mangled code. Have fun and enjoy. Here is my reference numbers for all available user defined keys within A4 Reference number = Key 1 = A 2 = B 3 = C 4 = D 5 = E 6 = F 7 = G 8 = H 9 = I 10 = J 11 = K 12 = L 13 = M 14 = N 15 = O 16 = P 17 = Q 18 = R 19 = S 20 = T 21 = U 22 = V 23 = W 24 = X 25 = Y 26 = Z 27 = CUU 28 = CUD 29 = CUR 30 = CUL 31 = 1 32 = 2 33 = 3 34 = 4 35 = 5 36 = 6 37 = 7 38 = 8 39 = 9 40 = 0 41 = F1 42 = F2 43 = F3 44 = F4 45 = F5 46 = F6 47 = F7 48 = F8 49 = F9 50 = F10 51 = F11 52 = F12 53 = ESC 54 = PAUSE 55 = GRAVE 56 = MINUSC 57 = EQUALS 58 = BKSL 59 = BKSP 60 = INS 61 = HOME 62 = PGUP 63 = DEL 64 = END 65 = PGDN 66 = TAB 67 = BRACKL 68 = BRACKR 69 = SEMIC 70 = APOS 71 = ENTER 72 = SHIFT - the engines gives a read only error when trying to configure - not used in this demo 73 = CAL 74 = CAR 75 = SLASH 76 = CTRL 77 = ALT 78 = SPACE */ // define default movement and weapon keys-edit / add to these for your specific application DEFINE key_forward, KEY_CUU; DEFINE key_reverse, KEY_CUD; DEFINE key_turn_right, KEY_CUR; DEFINE key_turn_left, KEY_CUL; DEFINE key_look_up, KEY_PGUP; DEFINE key_look_down, KEY_PGDN; DEFINE key_strafe_right, KEY_CAR; DEFINE key_strafe_left, KEY_CAL; //DEFINE key_run, KEY_SHIFT;// the engine gives a read only error when trying to configure DEFINE key_jump, KEY_HOME; DEFINE key_use_weapon, KEY_CTRL; VAR current_control = 0;// current control key that you are editing; 1 = forward, 2 = reverse, 3 = right, 4 = left, etc. // default numbers for the user defined keys - 27 = KEY_CUU, 28 = KEY_CUD, etc. VAR user_key_forward = 27; VAR user_key_reverse = 28; VAR user_key_turn_right = 29; VAR user_key_turn_left = 30; VAR user_key_look_up = 62; VAR user_key_look_down = 65; VAR user_key_strafe_right = 74; VAR user_key_strafe_left = 73; VAR user_key_run = 72; VAR user_key_jump = 61; VAR user_key_use_weapon = 76; FUNCTION init_settings () { reset_keys();// set uneeded keys to NULL WHILE (1){ // use weapon key assignments (the weapon.wdl uses ON_CTRL weapon_fire; but will not function correctly in this demo // so it is instead put within a continous loop) IF (user_key_use_weapon == 1){key_use_weapon = Key_A;weapon_fire();} IF (user_key_use_weapon == 2){key_use_weapon = Key_B;weapon_fire();} IF (user_key_use_weapon == 3){key_use_weapon = Key_C;weapon_fire();} IF (user_key_use_weapon == 4){key_use_weapon = Key_D;weapon_fire();} IF (user_key_use_weapon == 5){key_use_weapon = Key_E;weapon_fire();} IF (user_key_use_weapon == 6){key_use_weapon = Key_F;weapon_fire();} IF (user_key_use_weapon == 7){key_use_weapon = Key_G;weapon_fire();} IF (user_key_use_weapon == 8){key_use_weapon = Key_H;weapon_fire();} IF (user_key_use_weapon == 9){key_use_weapon = Key_I;weapon_fire();} IF (user_key_use_weapon == 10){key_use_weapon = Key_J;weapon_fire();} IF (user_key_use_weapon == 11){key_use_weapon = Key_K;weapon_fire();} IF (user_key_use_weapon == 12){key_use_weapon = Key_L;weapon_fire();} IF (user_key_use_weapon == 13){key_use_weapon = Key_M;weapon_fire();} IF (user_key_use_weapon == 14){key_use_weapon = Key_N;weapon_fire();} IF (user_key_use_weapon == 15){key_use_weapon = Key_O;weapon_fire();} IF (user_key_use_weapon == 16){key_use_weapon = Key_P;weapon_fire();} IF (user_key_use_weapon == 17){key_use_weapon = Key_Q;weapon_fire();} IF (user_key_use_weapon == 18){key_use_weapon = Key_R;weapon_fire();} IF (user_key_use_weapon == 19){key_use_weapon = Key_S;weapon_fire();} IF (user_key_use_weapon == 20){key_use_weapon = Key_T;weapon_fire();} IF (user_key_use_weapon == 21){key_use_weapon = Key_U;weapon_fire();} IF (user_key_use_weapon == 22){key_use_weapon = Key_V;weapon_fire();} IF (user_key_use_weapon == 23){key_use_weapon = Key_W;weapon_fire();} IF (user_key_use_weapon == 24){key_use_weapon = Key_X;weapon_fire();} IF (user_key_use_weapon == 25){key_use_weapon = Key_Y;weapon_fire();} IF (user_key_use_weapon == 26){key_use_weapon = Key_Z;weapon_fire();} IF (user_key_use_weapon == 27){key_use_weapon = Key_CUU;weapon_fire();} IF (user_key_use_weapon == 28){key_use_weapon = Key_CUD;weapon_fire();} IF (user_key_use_weapon == 29){key_use_weapon = Key_CUR;weapon_fire();} IF (user_key_use_weapon == 30){key_use_weapon = Key_CUL;weapon_fire();} IF (user_key_use_weapon == 31){key_use_weapon = Key_1;weapon_fire();} IF (user_key_use_weapon == 32){key_use_weapon = Key_2;weapon_fire();} IF (user_key_use_weapon == 33){key_use_weapon = Key_3;weapon_fire();} IF (user_key_use_weapon == 34){key_use_weapon = Key_4;weapon_fire();} IF (user_key_use_weapon == 35){key_use_weapon = Key_5;weapon_fire();} IF (user_key_use_weapon == 36){key_use_weapon = Key_6;weapon_fire();} IF (user_key_use_weapon == 37){key_use_weapon = Key_7;weapon_fire();} IF (user_key_use_weapon == 38){key_use_weapon = Key_8;weapon_fire();} IF (user_key_use_weapon == 39){key_use_weapon = Key_9;weapon_fire();} IF (user_key_use_weapon == 40){key_use_weapon = Key_0;weapon_fire();} IF (user_key_use_weapon == 41){key_use_weapon = Key_F1;weapon_fire();} IF (user_key_use_weapon == 42){key_use_weapon = Key_F2;weapon_fire();} IF (user_key_use_weapon == 43){key_use_weapon = Key_F3;weapon_fire();} IF (user_key_use_weapon == 44){key_use_weapon = Key_F4;weapon_fire();} IF (user_key_use_weapon == 45){key_use_weapon = Key_F5;weapon_fire();} IF (user_key_use_weapon == 46){key_use_weapon = Key_F6;weapon_fire();} IF (user_key_use_weapon == 47){key_use_weapon = Key_F7;weapon_fire();} IF (user_key_use_weapon == 48){key_use_weapon = Key_F8;weapon_fire();} IF (user_key_use_weapon == 49){key_use_weapon = Key_F9;weapon_fire();} IF (user_key_use_weapon == 50){key_use_weapon = Key_F10;weapon_fire();} IF (user_key_use_weapon == 51){key_use_weapon = Key_F11;weapon_fire();} IF (user_key_use_weapon == 52){key_use_weapon = Key_F12;weapon_fire();} IF (user_key_use_weapon == 53){key_use_weapon = Key_ESC;weapon_fire();} IF (user_key_use_weapon == 54){key_use_weapon = Key_PAUSE;weapon_fire();} IF (user_key_use_weapon == 55){key_use_weapon = Key_GRAVE;weapon_fire();} IF (user_key_use_weapon == 56){key_use_weapon = Key_MINUSC;weapon_fire();} IF (user_key_use_weapon == 57){key_use_weapon = Key_EQUALS;weapon_fire();} IF (user_key_use_weapon == 58){key_use_weapon = Key_BKSL;weapon_fire();} IF (user_key_use_weapon == 59){key_use_weapon = Key_BKSP;weapon_fire();} IF (user_key_use_weapon == 60){key_use_weapon = Key_INS;weapon_fire();} IF (user_key_use_weapon == 61){key_use_weapon = Key_HOME;weapon_fire();} IF (user_key_use_weapon == 62){key_use_weapon = Key_PGUP;weapon_fire();} IF (user_key_use_weapon == 63){key_use_weapon = Key_DEL;weapon_fire();} IF (user_key_use_weapon == 64){key_use_weapon = Key_END;weapon_fire();} IF (user_key_use_weapon == 65){key_use_weapon = Key_PGDN;weapon_fire();} IF (user_key_use_weapon == 66){key_use_weapon = Key_TAB;weapon_fire();} IF (user_key_use_weapon == 67){key_use_weapon = Key_BRACKL;weapon_fire();} IF (user_key_use_weapon == 68){key_use_weapon = Key_BRACKR;weapon_fire();} IF (user_key_use_weapon == 69){key_use_weapon = Key_SEMIC;weapon_fire();} IF (user_key_use_weapon == 70){key_use_weapon = Key_APOS;weapon_fire();} IF (user_key_use_weapon == 71){key_use_weapon = Key_ENTER;weapon_fire();} IF (user_key_use_weapon == 72){key_use_weapon = Key_SHIFT;weapon_fire();} IF (user_key_use_weapon == 73){key_use_weapon = Key_CAL;weapon_fire();} IF (user_key_use_weapon == 74){key_use_weapon = Key_CAR;weapon_fire();} IF (user_key_use_weapon == 75){key_use_weapon = Key_SLASH;weapon_fire();} IF (user_key_use_weapon == 76){key_use_weapon = Key_CTRL;weapon_fire();} IF (user_key_use_weapon == 77){key_use_weapon = Key_ALT;weapon_fire();} IF (user_key_use_weapon == 78){key_use_weapon = Key_SPACE;weapon_fire();} WAIT 1; } } // graphics for the user defined control key panels - basic and ugly - don't embarass yourself by using these BMAP BlankKey,; BMAP key_contol_main,; BMAP KeyChose,;//////// BMAP Done1,; BMAP Done2,; BMAP Forward1,; BMAP Forward2,; BMAP Reverse1,; BMAP Reverse2,; BMAP TurnRight1,; BMAP TurnRight2,; BMAP TurnLeft1,; BMAP TurnLeft2,; BMAP Jump1,; BMAP Jump2,; BMAP LookUp1,; BMAP LookUp2,; BMAP LookDown1,; BMAP LookDown2,; BMAP StrafeR1,; BMAP StrafeR2,; BMAP StrafeL1,; BMAP StrafeL2,; BMAP Run1,; BMAP Run2,; BMAP UseWeapon1,; BMAP UseWeapon2,; // fixed font for indicating which key is used for a control - I originally was using seperate panels for better looks but would // require too much storage space for the user - try different fonts for better looking indicators FONT Lucida_Console_Bold_14, , 13, 19; STRING blank_string ""; // start with a blank string for control indicators and change to correct string in code TEXT forward_indicator { POS_X 200; POS_Y 75; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT reverse_indicator { POS_X 200; POS_Y 105; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT turn_right_indicator { POS_X 200; POS_Y 135; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT turn_left_indicator { POS_X 200; POS_Y 165; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT look_up_indicator { POS_X 200; POS_Y 195; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT look_down_indicator { POS_X 200; POS_Y 225; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT strafe_right_indicator { POS_X 200; POS_Y 255; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT strafe_left_indicator { POS_X 200; POS_Y 285; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT run_indicator { POS_X 200; POS_Y 315; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT jump_indicator { POS_X 200; POS_Y 345; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } TEXT use_weapon_indicator { POS_X 200; POS_Y 375; FONT Lucida_Console_Bold_14; STRING blank_string; LAYER 3; } // buttons for choosing which key will be used for each control // these buttons are transparent (instead of 78 different graphics) to conserve memory / storage space PANEL choose_keys { BMAP KeyChose; POS_X 0; POS_Y 0; BUTTON 72, 115, BlankKey, BlankKey, BlankKey, A_event, NULL, NULL; BUTTON 271, 149, BlankKey BlankKey, BlankKey, B_event, NULL, NULL; BUTTON 182, 149, BlankKey, BlankKey, BlankKey, C_event, NULL, NULL; BUTTON 159, 115, BlankKey, BlankKey, BlankKey, D_event, NULL, NULL; BUTTON 157, 81, BlankKey, BlankKey, BlankKey, E_event, NULL, NULL; BUTTON 203, 115, BlankKey, BlankKey, BlankKey,F_event, NULL, NULL; BUTTON 247, 115, BlankKey, BlankKey, BlankKey, G_event, NULL, NULL; BUTTON 291, 115, BlankKey, BlankKey, BlankKey, H_event, NULL, NULL; BUTTON 377, 81, BlankKey, BlankKey, BlankKey, I_event, NULL, NULL; BUTTON 335, 115, BlankKey, BlankKey, BlankKey, J_event, NULL, NULL; BUTTON 380, 115, BlankKey, BlankKey, BlankKey, K_event, NULL, NULL; BUTTON 424, 115, BlankKey, BlankKey, BlankKey, L_event, NULL, NULL; BUTTON 359, 149, BlankKey, BlankKey, BlankKey, M_event, NULL, NULL; BUTTON 315, 149, BlankKey, BlankKey, BlankKey, N_event, NULL, NULL; BUTTON 421, 81, BlankKey, BlankKey, BlankKey, O_event, NULL, NULL; BUTTON 465, 81, BlankKey, BlankKey, BlankKey, P_event, NULL, NULL; BUTTON 68, 81, BlankKey, BlankKey, BlankKey, Q_event, NULL, NULL; BUTTON 201, 81, BlankKey, BlankKey, BlankKey, R_event, NULL, NULL; BUTTON 115, 115, BlankKey, BlankKey, BlankKey, S_event, NULL, NULL; BUTTON 245, 81, BlankKey, BlankKey, BlankKey, T_event, NULL, NULL; BUTTON 333, 81, BlankKey, BlankKey, BlankKey, U_event, NULL, NULL; BUTTON 227, 149, BlankKey, BlankKey, BlankKey, V_event, NULL, NULL; BUTTON 112, 81, BlankKey, BlankKey, BlankKey, W_event, NULL, NULL; BUTTON 138, 149, BlankKey, BlankKey, BlankKey, X_event, NULL, NULL; BUTTON 289, 81, BlankKey, BlankKey, BlankKey, Y_event, NULL, NULL; BUTTON 94, 149, BlankKey, BlankKey, BlankKey, Z_event, NULL, NULL; BUTTON 299, 391, BlankKey, BlankKey, BlankKey, UpArrow_event, NULL, NULL; BUTTON 299, 426, BlankKey, BlankKey, BlankKey, DownArrow_event, NULL, NULL; BUTTON 344, 426, BlankKey, BlankKey, BlankKey, RightArrow_event, NULL, NULL; BUTTON 255, 426, BlankKey, BlankKey, BlankKey, LeftArrow_event, NULL, NULL; BUTTON 54, 47, BlankKey, BlankKey, BlankKey, 1_event, NULL, NULL; BUTTON 95, 47, BlankKey, BlankKey, BlankKey, 2_event, NULL, NULL; BUTTON 136, 47, BlankKey, BlankKey, BlankKey, 3_event, NULL, NULL; BUTTON 177, 47, BlankKey, BlankKey, BlankKey, 4_event, NULL, NULL; BUTTON 219, 47, BlankKey, BlankKey, BlankKey, 5_event, NULL, NULL; BUTTON 260, 47, BlankKey, BlankKey, BlankKey, 6_event, NULL, NULL; BUTTON 302, 47, BlankKey, BlankKey, BlankKey, 7_event, NULL, NULL; BUTTON 344, 47, BlankKey, BlankKey, BlankKey, 8_event, NULL, NULL; BUTTON 386, 47, BlankKey, BlankKey, BlankKey, 9_event, NULL, NULL; BUTTON 430, 47, BlankKey, BlankKey, BlankKey, 0_event, NULL, NULL; BUTTON 73, 14, BlankKey, BlankKey, BlankKey, F1_event, NULL, NULL; BUTTON 118, 14, BlankKey, BlankKey, BlankKey, F2_event, NULL, NULL; BUTTON 163, 14, BlankKey, BlankKey, BlankKey, F3_event, NULL, NULL; BUTTON 207, 14, BlankKey, BlankKey, BlankKey, F4_event, NULL, NULL; BUTTON 266, 14, BlankKey, BlankKey, BlankKey, F5_event, NULL, NULL; BUTTON 310, 14, BlankKey, BlankKey, BlankKey, F6_event, NULL, NULL; BUTTON 354, 14, BlankKey, BlankKey, BlankKey, F7_event, NULL, NULL; BUTTON 398, 14, BlankKey, BlankKey, BlankKey, F8_event, NULL, NULL; BUTTON 456, 14, BlankKey, BlankKey, BlankKey, F9_event, NULL, NULL; BUTTON 500, 14, BlankKey, BlankKey, BlankKey, F10_event, NULL, NULL; BUTTON 544, 14, BlankKey, BlankKey, BlankKey, F11_event, NULL, NULL; BUTTON 588, 14, BlankKey, BlankKey, BlankKey, F12_event, NULL, NULL; BUTTON 13, 14, BlankKey, BlankKey, BlankKey, Esc_event, NULL, NULL; BUTTON 354, 283, BlankKey, BlankKey, BlankKey, Pause_event, NULL, NULL; BUTTON 13, 47, BlankKey, BlankKey, BlankKey, Tilde_event, NULL, NULL; BUTTON 471, 47, BlankKey, BlankKey, BlankKey, Minus_event, NULL, NULL; BUTTON 510, 47, BlankKey, BlankKey, BlankKey, Plus_event, NULL, NULL; BUTTON 550, 47, BlankKey, BlankKey, BlankKey, Backslash_event, NULL, NULL; BUTTON 588, 47, BlankKey, BlankKey, BlankKey, Backspace_event, NULL, NULL; BUTTON 243, 319, BlankKey, BlankKey, BlankKey, Insert_event, NULL, NULL; BUTTON 299, 319, BlankKey, BlankKey, BlankKey, Home_event, NULL, NULL; BUTTON 354, 319, BlankKey, BlankKey, BlankKey, PageUp_event, NULL, NULL; BUTTON 354, 355, BlankKey, BlankKey, BlankKey, PageDown_event, NULL, NULL; BUTTON 243, 355, BlankKey, BlankKey, BlankKey, Delete_event, NULL, NULL; BUTTON 299, 355, BlankKey, BlankKey, BlankKey, End_event, NULL, NULL; BUTTON 16, 81, BlankKey, BlankKey, BlankKey, Tab_event, NULL, NULL; BUTTON 509, 81, BlankKey, BlankKey, BlankKey, BracketLeft_event, NULL, NULL; BUTTON 552, 81, BlankKey, BlankKey, BlankKey, BracketRight_event, NULL, NULL; BUTTON 468, 115, BlankKey, BlankKey, BlankKey, Semicolon_event, NULL, NULL; BUTTON 512, 115, BlankKey, BlankKey, BlankKey, Apostrophe_event, NULL, NULL; BUTTON 572, 115, BlankKey, BlankKey, BlankKey, Enter_event, NULL, NULL; BUTTON 32, 149, BlankKey, BlankKey, BlankKey, ShiftLeft_event, NULL, NULL; BUTTON 562, 149, BlankKey, BlankKey, BlankKey, ShiftRight_event, NULL, NULL; BUTTON 402, 149, BlankKey, BlankKey, BlankKey, Comma_event, NULL, NULL; BUTTON 444, 149, BlankKey, BlankKey, BlankKey, Period_event, NULL, NULL; BUTTON 488, 149, BlankKey, BlankKey, BlankKey, Slash_event, NULL, NULL; BUTTON 16, 184, BlankKey, BlankKey, BlankKey, ControlLeft_event, NULL, NULL; BUTTON 582, 184, BlankKey, BlankKey, BlankKey, ControlRight_event, NULL, NULL; BUTTON 70, 184, BlankKey, BlankKey, BlankKey, AlternateLeft_event, NULL, NULL; BUTTON 528, 184, BlankKey, BlankKey, BlankKey, AlternateRight_event, NULL, NULL; BUTTON 293, 184, BlankKey, BlankKey, BlankKey, Space_event, NULL, NULL; LAYER 4; FLAGS REFRESH, OVERLAY; } // main panel PANEL key_contol_menu { BMAP key_contol_main; POS_X 0; POS_Y 0; BUTTON 20, 70, Forward1, Forward1, Forward2, forward_event, NULL, NULL; BUTTON 20, 100, Reverse1, Reverse1, Reverse2, reverse_event, NULL, NULL; BUTTON 20, 130, TurnRight1, TurnRight1, TurnRight2, turn_right_event, NULL, NULL; BUTTON 20, 160, TurnLeft1, TurnLeft1, TurnLeft2, turn_left_event, NULL, NULL; BUTTON 20, 190, LookUp1, LookUp1, LookUp2, look_up_event, NULL, NULL; BUTTON 20, 220, LookDown1, LookDown1, LookDown2, look_down_event, NULL, NULL; BUTTON 20, 250, StrafeR1, StrafeR1, StrafeR2, strafe_right_event, NULL, NULL; BUTTON 20, 280, StrafeL1, StrafeL1, StrafeL2, strafe_left_event, NULL, NULL; BUTTON 20, 310, Run1, Run1, Run1, NULL, NULL, NULL;// use Run2 and run_event if the read only error is solved BUTTON 20, 340, Jump1, Jump1, Jump2, jump_event, NULL, NULL; BUTTON 20, 370, UseWeapon1, UseWeapon1, UseWeapon2, use_weapon_event, NULL, NULL; BUTTON 20, 430, Done1, Done1, Done2, close_menu, NULL, NULL; LAYER 2; FLAGS REFRESH, OVERLAY; } // opens main panel, assures panels are high color, activates mouse pointer, sets currently used control indicators FUNCTION open_menu () { D3D_PANELS = ON; key_contol_menu.VISIBLE = ON; MOUSE_MODE = 1; mouse_on(); key_panels_on(); } ON_F1 open_menu;// starts the key selection process // closes main panel, high color panels are no longer needed, de-activates mouse pointer, closesd control indicators FUNCTION close_menu () { WAIT 8;// to prevent weapon from being activated when clicking the DONE button key_contol_menu.VISIBLE = OFF; D3D_PANELS = OFF; key_panels_off(); MOUSE_MODE = 0; mouse_off(); } // assigns a reference number to the control being edited FUNCTION forward_event () { current_control = 1; choose_keys.VISIBLE = ON; } FUNCTION reverse_event () { current_control = 2; choose_keys.VISIBLE = ON; } FUNCTION turn_right_event () { current_control = 3; choose_keys.VISIBLE = ON; } FUNCTION turn_left_event () { current_control = 4; choose_keys.VISIBLE = ON; } FUNCTION look_up_event () { current_control = 5; choose_keys.VISIBLE = ON; } FUNCTION look_down_event () { current_control = 6; choose_keys.VISIBLE = ON; } FUNCTION strafe_right_event () { current_control = 7; choose_keys.VISIBLE = ON; } FUNCTION strafe_left_event () { current_control = 8; choose_keys.VISIBLE = ON; } FUNCTION run_event () { current_control = 9; choose_keys.VISIBLE = ON; } FUNCTION jump_event () { current_control = 10; choose_keys.VISIBLE = ON; } FUNCTION use_weapon_event () { current_control = 11; choose_keys.VISIBLE = ON; } // assigns the user defined key to the contol being edited FUNCTION A_event () { IF (current_control == 1){user_key_forward = 1;} IF (current_control == 2){user_key_reverse = 1;} IF (current_control == 3){user_key_turn_right = 1;} IF (current_control == 4){user_key_turn_left = 1;} IF (current_control == 5){user_key_look_up = 1;} IF (current_control == 6){user_key_look_down = 1;} IF (current_control == 7){user_key_strafe_right = 1;} IF (current_control == 8){user_key_strafe_left = 1;} IF (current_control == 9){user_key_run = 1;} IF (current_control == 10){user_key_jump = 1;} IF (current_control == 11){user_key_use_weapon = 1;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION B_event () { IF (current_control == 1){user_key_forward = 2;} IF (current_control == 2){user_key_reverse = 2;} IF (current_control == 3){user_key_turn_right = 2;} IF (current_control == 4){user_key_turn_left = 2;} IF (current_control == 5){user_key_look_up = 2;} IF (current_control == 6){user_key_look_down = 2;} IF (current_control == 7){user_key_strafe_right = 2;} IF (current_control == 8){user_key_strafe_left = 2;} IF (current_control == 9){user_key_run = 2;} IF (current_control == 10){user_key_jump = 2;} IF (current_control == 11){user_key_use_weapon = 2;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION C_event () { IF (current_control == 1){user_key_forward = 3;} IF (current_control == 2){user_key_reverse = 3;} IF (current_control == 3){user_key_turn_right = 3;} IF (current_control == 4){user_key_turn_left = 3;} IF (current_control == 5){user_key_look_up = 3;} IF (current_control == 6){user_key_look_down = 3;} IF (current_control == 7){user_key_strafe_right = 3;} IF (current_control == 8){user_key_strafe_left = 3;} IF (current_control == 9){user_key_run = 3;} IF (current_control == 10){user_key_jump = 3;} IF (current_control == 11){user_key_use_weapon = 3;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION D_event () { IF (current_control == 1){user_key_forward = 4;} IF (current_control == 2){user_key_reverse = 4;} IF (current_control == 3){user_key_turn_right = 4;} IF (current_control == 4){user_key_turn_left = 4;} IF (current_control == 5){user_key_look_up = 4;} IF (current_control == 6){user_key_look_down = 4;} IF (current_control == 7){user_key_strafe_right = 4;} IF (current_control == 8){user_key_strafe_left = 4;} IF (current_control == 9){user_key_run = 4;} IF (current_control == 10){user_key_jump = 4;} IF (current_control == 11){user_key_use_weapon = 4;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION E_event () { IF (current_control == 1){user_key_forward = 5;} IF (current_control == 2){user_key_reverse = 5;} IF (current_control == 3){user_key_turn_right = 5;} IF (current_control == 4){user_key_turn_left = 5;} IF (current_control == 5){user_key_look_up = 5;} IF (current_control == 6){user_key_look_down = 5;} IF (current_control == 7){user_key_strafe_right = 5;} IF (current_control == 8){user_key_strafe_left = 5;} IF (current_control == 9){user_key_run = 5;} IF (current_control == 10){user_key_jump = 5;} IF (current_control == 11){user_key_use_weapon = 5;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F_event () { IF (current_control == 1){user_key_forward = 6;} IF (current_control == 2){user_key_reverse = 6;} IF (current_control == 3){user_key_turn_right = 6;} IF (current_control == 4){user_key_turn_left = 6;} IF (current_control == 5){user_key_look_up = 6;} IF (current_control == 6){user_key_look_down = 6;} IF (current_control == 7){user_key_strafe_right = 6;} IF (current_control == 8){user_key_strafe_left = 6;} IF (current_control == 9){user_key_run = 6;} IF (current_control == 10){user_key_jump = 6;} IF (current_control == 11){user_key_use_weapon = 6;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION G_event () { IF (current_control == 1){user_key_forward = 7;} IF (current_control == 2){user_key_reverse = 7;} IF (current_control == 3){user_key_turn_right = 7;} IF (current_control == 4){user_key_turn_left = 7;} IF (current_control == 5){user_key_look_up = 7;} IF (current_control == 6){user_key_look_down = 7;} IF (current_control == 7){user_key_strafe_right = 7;} IF (current_control == 8){user_key_strafe_left = 7;} IF (current_control == 9){user_key_run = 7;} IF (current_control == 10){user_key_jump = 7;} IF (current_control == 11){user_key_use_weapon = 7;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION H_event () { IF (current_control == 1){user_key_forward = 8;} IF (current_control == 2){user_key_reverse = 8;} IF (current_control == 3){user_key_turn_right = 8;} IF (current_control == 4){user_key_turn_left = 8;} IF (current_control == 5){user_key_look_up = 8;} IF (current_control == 6){user_key_look_down = 8;} IF (current_control == 7){user_key_strafe_right = 8;} IF (current_control == 8){user_key_strafe_left = 8;} IF (current_control == 9){user_key_run = 8;} IF (current_control == 10){user_key_jump = 8;} IF (current_control == 11){user_key_use_weapon = 8;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION I_event () { IF (current_control == 1){user_key_forward = 9;} IF (current_control == 2){user_key_reverse = 9;} IF (current_control == 3){user_key_turn_right = 9;} IF (current_control == 4){user_key_turn_left = 9;} IF (current_control == 5){user_key_look_up = 9;} IF (current_control == 6){user_key_look_down = 9;} IF (current_control == 7){user_key_strafe_right = 9;} IF (current_control == 8){user_key_strafe_left = 9;} IF (current_control == 9){user_key_run = 9;} IF (current_control == 10){user_key_jump = 9;} IF (current_control == 11){user_key_use_weapon = 9;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION J_event () { IF (current_control == 1){user_key_forward = 10;} IF (current_control == 2){user_key_reverse = 10;} IF (current_control == 3){user_key_turn_right = 10;} IF (current_control == 4){user_key_turn_left = 10;} IF (current_control == 5){user_key_look_up = 10;} IF (current_control == 6){user_key_look_down = 10;} IF (current_control == 7){user_key_strafe_right = 10;} IF (current_control == 8){user_key_strafe_left = 10;} IF (current_control == 9){user_key_run = 10;} IF (current_control == 10){user_key_jump = 10;} IF (current_control == 11){user_key_use_weapon = 10;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION K_event () { IF (current_control == 1){user_key_forward = 11;} IF (current_control == 2){user_key_reverse = 11;} IF (current_control == 3){user_key_turn_right = 11;} IF (current_control == 4){user_key_turn_left = 11;} IF (current_control == 5){user_key_look_up = 11;} IF (current_control == 6){user_key_look_down = 11;} IF (current_control == 7){user_key_strafe_right = 11;} IF (current_control == 8){user_key_strafe_left = 11;} IF (current_control == 9){user_key_run = 11;} IF (current_control == 10){user_key_jump = 11;} IF (current_control == 11){user_key_use_weapon = 11;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION L_event () { IF (current_control == 1){user_key_forward = 12;} IF (current_control == 2){user_key_reverse = 12;} IF (current_control == 3){user_key_turn_right = 12;} IF (current_control == 4){user_key_turn_left = 12;} IF (current_control == 5){user_key_look_up = 12;} IF (current_control == 6){user_key_look_down = 12;} IF (current_control == 7){user_key_strafe_right = 12;} IF (current_control == 8){user_key_strafe_left = 12;} IF (current_control == 9){user_key_run = 12;} IF (current_control == 10){user_key_jump = 12;} IF (current_control == 11){user_key_use_weapon = 12;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION M_event () { IF (current_control == 1){user_key_forward = 13;} IF (current_control == 2){user_key_reverse = 13;} IF (current_control == 3){user_key_turn_right = 13;} IF (current_control == 4){user_key_turn_left = 13;} IF (current_control == 5){user_key_look_up = 13;} IF (current_control == 6){user_key_look_down = 13;} IF (current_control == 7){user_key_strafe_right = 13;} IF (current_control == 8){user_key_strafe_left = 13;} IF (current_control == 9){user_key_run = 13;} IF (current_control == 10){user_key_jump = 13;} IF (current_control == 11){user_key_use_weapon = 13;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION N_event () { IF (current_control == 1){user_key_forward = 14;} IF (current_control == 2){user_key_reverse = 14;} IF (current_control == 3){user_key_turn_right = 14;} IF (current_control == 4){user_key_turn_left = 14;} IF (current_control == 5){user_key_look_up = 14;} IF (current_control == 6){user_key_look_down = 14;} IF (current_control == 7){user_key_strafe_right = 14;} IF (current_control == 8){user_key_strafe_left = 14;} IF (current_control == 9){user_key_run = 14;} IF (current_control == 10){user_key_jump = 14;} IF (current_control == 11){user_key_use_weapon = 14;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION O_event () { IF (current_control == 1){user_key_forward = 15;} IF (current_control == 2){user_key_reverse = 15;} IF (current_control == 3){user_key_turn_right = 15;} IF (current_control == 4){user_key_turn_left = 15;} IF (current_control == 5){user_key_look_up = 15;} IF (current_control == 6){user_key_look_down = 15;} IF (current_control == 7){user_key_strafe_right = 15;} IF (current_control == 8){user_key_strafe_left = 15;} IF (current_control == 9){user_key_run = 15;} IF (current_control == 10){user_key_jump = 15;} IF (current_control == 11){user_key_use_weapon = 15;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION P_event () { IF (current_control == 1){user_key_forward = 16;} IF (current_control == 2){user_key_reverse = 16;} IF (current_control == 3){user_key_turn_right = 16;} IF (current_control == 4){user_key_turn_left = 16;} IF (current_control == 5){user_key_look_up = 16;} IF (current_control == 6){user_key_look_down = 16;} IF (current_control == 7){user_key_strafe_right = 16;} IF (current_control == 8){user_key_strafe_left = 16;} IF (current_control == 9){user_key_run = 16;} IF (current_control == 10){user_key_jump = 16;} IF (current_control == 11){user_key_use_weapon = 16;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Q_event () { IF (current_control == 1){user_key_forward = 17;} IF (current_control == 2){user_key_reverse = 17;} IF (current_control == 3){user_key_turn_right = 17;} IF (current_control == 4){user_key_turn_left = 17;} IF (current_control == 5){user_key_look_up = 17;} IF (current_control == 6){user_key_look_down = 17;} IF (current_control == 7){user_key_strafe_right = 17;} IF (current_control == 8){user_key_strafe_left = 17;} IF (current_control == 9){user_key_run = 17;} IF (current_control == 10){user_key_jump = 17;} IF (current_control == 11){user_key_use_weapon = 17;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION R_event () { IF (current_control == 1){user_key_forward = 18;} IF (current_control == 2){user_key_reverse = 18;} IF (current_control == 3){user_key_turn_right = 18;} IF (current_control == 4){user_key_turn_left = 18;} IF (current_control == 5){user_key_look_up = 18;} IF (current_control == 6){user_key_look_down = 18;} IF (current_control == 7){user_key_strafe_right = 18;} IF (current_control == 8){user_key_strafe_left = 18;} IF (current_control == 9){user_key_run = 18;} IF (current_control == 10){user_key_jump = 18;} IF (current_control == 11){user_key_use_weapon = 18;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION S_event () { IF (current_control == 1){user_key_forward = 19;} IF (current_control == 2){user_key_reverse = 19;} IF (current_control == 3){user_key_turn_right = 19;} IF (current_control == 4){user_key_turn_left = 19;} IF (current_control == 5){user_key_look_up = 19;} IF (current_control == 6){user_key_look_down = 19;} IF (current_control == 7){user_key_strafe_right = 19;} IF (current_control == 8){user_key_strafe_left = 19;} IF (current_control == 9){user_key_run = 19;} IF (current_control == 10){user_key_jump = 19;} IF (current_control == 11){user_key_use_weapon = 19;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION T_event () { IF (current_control == 1){user_key_forward = 20;} IF (current_control == 2){user_key_reverse = 20;} IF (current_control == 3){user_key_turn_right = 20;} IF (current_control == 4){user_key_turn_left = 20;} IF (current_control == 5){user_key_look_up = 20;} IF (current_control == 6){user_key_look_down = 20;} IF (current_control == 7){user_key_strafe_right = 20;} IF (current_control == 8){user_key_strafe_left = 20;} IF (current_control == 9){user_key_run = 20;} IF (current_control == 10){user_key_jump = 20;} IF (current_control == 11){user_key_use_weapon = 20;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION U_event () { IF (current_control == 1){user_key_forward = 21;} IF (current_control == 2){user_key_reverse = 21;} IF (current_control == 3){user_key_turn_right = 21;} IF (current_control == 4){user_key_turn_left = 21;} IF (current_control == 5){user_key_look_up = 21;} IF (current_control == 6){user_key_look_down = 21;} IF (current_control == 7){user_key_strafe_right = 21;} IF (current_control == 8){user_key_strafe_left = 21;} IF (current_control == 9){user_key_run = 21;} IF (current_control == 10){user_key_jump = 21;} IF (current_control == 11){user_key_use_weapon = 21;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION V_event () { IF (current_control == 1){user_key_forward = 22;} IF (current_control == 2){user_key_reverse = 22;} IF (current_control == 3){user_key_turn_right = 22;} IF (current_control == 4){user_key_turn_left = 22;} IF (current_control == 5){user_key_look_up = 22;} IF (current_control == 6){user_key_look_down = 22;} IF (current_control == 7){user_key_strafe_right = 22;} IF (current_control == 8){user_key_strafe_left = 22;} IF (current_control == 9){user_key_run = 22;} IF (current_control == 10){user_key_jump = 22;} IF (current_control == 11){user_key_use_weapon = 22;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION W_event () { IF (current_control == 1){user_key_forward = 23;} IF (current_control == 2){user_key_reverse = 23;} IF (current_control == 3){user_key_turn_right = 23;} IF (current_control == 4){user_key_turn_left = 23;} IF (current_control == 5){user_key_look_up = 23;} IF (current_control == 6){user_key_look_down = 23;} IF (current_control == 7){user_key_strafe_right = 23;} IF (current_control == 8){user_key_strafe_left = 23;} IF (current_control == 9){user_key_run = 23;} IF (current_control == 10){user_key_jump = 23;} IF (current_control == 11){user_key_use_weapon = 23;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION X_event () { IF (current_control == 1){user_key_forward = 24;} IF (current_control == 2){user_key_reverse = 24;} IF (current_control == 3){user_key_turn_right = 24;} IF (current_control == 4){user_key_turn_left = 24;} IF (current_control == 5){user_key_look_up = 24;} IF (current_control == 6){user_key_look_down = 24;} IF (current_control == 7){user_key_strafe_right = 24;} IF (current_control == 8){user_key_strafe_left = 24;} IF (current_control == 9){user_key_run = 24;} IF (current_control == 10){user_key_jump = 24;} IF (current_control == 11){user_key_use_weapon = 24;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Y_event () { IF (current_control == 1){user_key_forward = 25;} IF (current_control == 2){user_key_reverse = 25;} IF (current_control == 3){user_key_turn_right = 25;} IF (current_control == 4){user_key_turn_left = 25;} IF (current_control == 5){user_key_look_up = 25;} IF (current_control == 6){user_key_look_down = 25;} IF (current_control == 7){user_key_strafe_right = 25;} IF (current_control == 8){user_key_strafe_left = 25;} IF (current_control == 9){user_key_run = 25;} IF (current_control == 10){user_key_jump = 25;} IF (current_control == 11){user_key_use_weapon = 25;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Z_event () { IF (current_control == 1){user_key_forward = 26;} IF (current_control == 2){user_key_reverse = 26;} IF (current_control == 3){user_key_turn_right = 26;} IF (current_control == 4){user_key_turn_left = 26;} IF (current_control == 5){user_key_look_up = 26;} IF (current_control == 6){user_key_look_down = 26;} IF (current_control == 7){user_key_strafe_right = 26;} IF (current_control == 8){user_key_strafe_left = 26;} IF (current_control == 9){user_key_run = 26;} IF (current_control == 10){user_key_jump = 26;} IF (current_control == 11){user_key_use_weapon = 26;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION UpArrow_event () { IF (current_control == 1){user_key_forward = 27;} IF (current_control == 2){user_key_reverse = 27;} IF (current_control == 3){user_key_turn_right = 27;} IF (current_control == 4){user_key_turn_left = 27;} IF (current_control == 5){user_key_look_up = 27;} IF (current_control == 6){user_key_look_down = 27;} IF (current_control == 7){user_key_strafe_right = 27;} IF (current_control == 8){user_key_strafe_left = 27;} IF (current_control == 9){user_key_run = 27;} IF (current_control == 10){user_key_jump = 27;} IF (current_control == 11){user_key_use_weapon = 27;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION DownArrow_event () { IF (current_control == 1){user_key_forward = 28;} IF (current_control == 2){user_key_reverse = 28;} IF (current_control == 3){user_key_turn_right = 28;} IF (current_control == 4){user_key_turn_left = 28;} IF (current_control == 5){user_key_look_up = 28;} IF (current_control == 6){user_key_look_down = 28;} IF (current_control == 7){user_key_strafe_right = 28;} IF (current_control == 8){user_key_strafe_left = 28;} IF (current_control == 9){user_key_run = 28;} IF (current_control == 10){user_key_jump = 28;} IF (current_control == 11){user_key_use_weapon = 28;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION RightArrow_event () { IF (current_control == 1){user_key_forward = 29;} IF (current_control == 2){user_key_reverse = 29;} IF (current_control == 3){user_key_turn_right = 29;} IF (current_control == 4){user_key_turn_left = 29;} IF (current_control == 5){user_key_look_up = 29;} IF (current_control == 6){user_key_look_down = 29;} IF (current_control == 7){user_key_strafe_right = 29;} IF (current_control == 8){user_key_strafe_left = 29;} IF (current_control == 9){user_key_run = 29;} IF (current_control == 10){user_key_jump = 29;} IF (current_control == 11){user_key_use_weapon = 29;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION LeftArrow_event () { IF (current_control == 1){user_key_forward = 30;} IF (current_control == 2){user_key_reverse = 30;} IF (current_control == 3){user_key_turn_right = 30;} IF (current_control == 4){user_key_turn_left = 30;} IF (current_control == 5){user_key_look_up = 30;} IF (current_control == 6){user_key_look_down = 30;} IF (current_control == 7){user_key_strafe_right = 30;} IF (current_control == 8){user_key_strafe_left = 30;} IF (current_control == 9){user_key_run = 30;} IF (current_control == 10){user_key_jump = 30;} IF (current_control == 11){user_key_use_weapon = 30;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 1_event () { IF (current_control == 1){user_key_forward = 31;} IF (current_control == 2){user_key_reverse = 31;} IF (current_control == 3){user_key_turn_right = 31;} IF (current_control == 4){user_key_turn_left = 31;} IF (current_control == 5){user_key_look_up = 31;} IF (current_control == 6){user_key_look_down = 31;} IF (current_control == 7){user_key_strafe_right = 31;} IF (current_control == 8){user_key_strafe_left = 31;} IF (current_control == 9){user_key_run = 31;} IF (current_control == 10){user_key_jump = 31;} IF (current_control == 11){user_key_use_weapon = 31;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 2_event () { IF (current_control == 1){user_key_forward = 32;} IF (current_control == 2){user_key_reverse = 32;} IF (current_control == 3){user_key_turn_right = 32;} IF (current_control == 4){user_key_turn_left = 32;} IF (current_control == 5){user_key_look_up = 32;} IF (current_control == 6){user_key_look_down = 32;} IF (current_control == 7){user_key_strafe_right = 32;} IF (current_control == 8){user_key_strafe_left = 32;} IF (current_control == 9){user_key_run = 32;} IF (current_control == 10){user_key_jump = 32;} IF (current_control == 11){user_key_use_weapon = 32;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 3_event () { IF (current_control == 1){user_key_forward = 33;} IF (current_control == 2){user_key_reverse = 33;} IF (current_control == 3){user_key_turn_right = 33;} IF (current_control == 4){user_key_turn_left = 33;} IF (current_control == 5){user_key_look_up = 33;} IF (current_control == 6){user_key_look_down = 33;} IF (current_control == 7){user_key_strafe_right = 33;} IF (current_control == 8){user_key_strafe_left = 33;} IF (current_control == 9){user_key_run = 33;} IF (current_control == 10){user_key_jump = 33;} IF (current_control == 11){user_key_use_weapon = 33;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 4_event () { IF (current_control == 1){user_key_forward = 34;} IF (current_control == 2){user_key_reverse = 34;} IF (current_control == 3){user_key_turn_right = 34;} IF (current_control == 4){user_key_turn_left = 34;} IF (current_control == 5){user_key_look_up = 34;} IF (current_control == 6){user_key_look_down = 34;} IF (current_control == 7){user_key_strafe_right = 34;} IF (current_control == 8){user_key_strafe_left = 34;} IF (current_control == 9){user_key_run = 34;} IF (current_control == 10){user_key_jump = 34;} IF (current_control == 11){user_key_use_weapon = 34;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 5_event () { IF (current_control == 1){user_key_forward = 35;} IF (current_control == 2){user_key_reverse = 35;} IF (current_control == 3){user_key_turn_right = 35;} IF (current_control == 4){user_key_turn_left = 35;} IF (current_control == 5){user_key_look_up = 35;} IF (current_control == 6){user_key_look_down = 35;} IF (current_control == 7){user_key_strafe_right = 35;} IF (current_control == 8){user_key_strafe_left = 35;} IF (current_control == 9){user_key_run = 35;} IF (current_control == 10){user_key_jump = 35;} IF (current_control == 11){user_key_use_weapon = 35;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 6_event () { IF (current_control == 1){user_key_forward = 36;} IF (current_control == 2){user_key_reverse = 36;} IF (current_control == 3){user_key_turn_right = 36;} IF (current_control == 4){user_key_turn_left = 36;} IF (current_control == 5){user_key_look_up = 36;} IF (current_control == 6){user_key_look_down = 36;} IF (current_control == 7){user_key_strafe_right = 36;} IF (current_control == 8){user_key_strafe_left = 36;} IF (current_control == 9){user_key_run = 36;} IF (current_control == 10){user_key_jump = 36;} IF (current_control == 11){user_key_use_weapon = 36;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 7_event () { IF (current_control == 1){user_key_forward = 37;} IF (current_control == 2){user_key_reverse = 37;} IF (current_control == 3){user_key_turn_right = 37;} IF (current_control == 4){user_key_turn_left = 37;} IF (current_control == 5){user_key_look_up = 37;} IF (current_control == 6){user_key_look_down = 37;} IF (current_control == 7){user_key_strafe_right = 37;} IF (current_control == 8){user_key_strafe_left = 37;} IF (current_control == 9){user_key_run = 37;} IF (current_control == 10){user_key_jump = 37;} IF (current_control == 11){user_key_use_weapon = 37;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 8_event () { IF (current_control == 1){user_key_forward = 38;} IF (current_control == 2){user_key_reverse = 38;} IF (current_control == 3){user_key_turn_right = 38;} IF (current_control == 4){user_key_turn_left = 38;} IF (current_control == 5){user_key_look_up = 38;} IF (current_control == 6){user_key_look_down = 38;} IF (current_control == 7){user_key_strafe_right = 38;} IF (current_control == 8){user_key_strafe_left = 38;} IF (current_control == 9){user_key_run = 38;} IF (current_control == 10){user_key_jump = 38;} IF (current_control == 11){user_key_use_weapon = 38;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 9_event () { IF (current_control == 1){user_key_forward = 39;} IF (current_control == 2){user_key_reverse = 39;} IF (current_control == 3){user_key_turn_right = 39;} IF (current_control == 4){user_key_turn_left = 39;} IF (current_control == 5){user_key_look_up = 39;} IF (current_control == 6){user_key_look_down = 39;} IF (current_control == 7){user_key_strafe_right = 39;} IF (current_control == 8){user_key_strafe_left = 39;} IF (current_control == 9){user_key_run = 39;} IF (current_control == 10){user_key_jump = 39;} IF (current_control == 11){user_key_use_weapon = 39;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION 0_event () { IF (current_control == 1){user_key_forward = 40;} IF (current_control == 2){user_key_reverse = 40;} IF (current_control == 3){user_key_turn_right = 40;} IF (current_control == 4){user_key_turn_left = 40;} IF (current_control == 5){user_key_look_up = 40;} IF (current_control == 6){user_key_look_down = 40;} IF (current_control == 7){user_key_strafe_right = 40;} IF (current_control == 8){user_key_strafe_left = 40;} IF (current_control == 9){user_key_run = 40;} IF (current_control == 10){user_key_jump = 40;} IF (current_control == 11){user_key_use_weapon = 40;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F1_event () { IF (current_control == 1){user_key_forward = 41;} IF (current_control == 2){user_key_reverse = 41;} IF (current_control == 3){user_key_turn_right = 41;} IF (current_control == 4){user_key_turn_left = 41;} IF (current_control == 5){user_key_look_up = 41;} IF (current_control == 6){user_key_look_down = 41;} IF (current_control == 7){user_key_strafe_right = 41;} IF (current_control == 8){user_key_strafe_left = 41;} IF (current_control == 9){user_key_run = 41;} IF (current_control == 10){user_key_jump = 41;} IF (current_control == 11){user_key_use_weapon = 41;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F2_event () { IF (current_control == 1){user_key_forward = 42;} IF (current_control == 2){user_key_reverse = 42;} IF (current_control == 3){user_key_turn_right = 42;} IF (current_control == 4){user_key_turn_left = 42;} IF (current_control == 5){user_key_look_up = 42;} IF (current_control == 6){user_key_look_down = 42;} IF (current_control == 7){user_key_strafe_right = 42;} IF (current_control == 8){user_key_strafe_left = 42;} IF (current_control == 9){user_key_run = 42;} IF (current_control == 10){user_key_jump = 42;} IF (current_control == 11){user_key_use_weapon = 42;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F3_event () { IF (current_control == 1){user_key_forward = 43;} IF (current_control == 2){user_key_reverse = 43;} IF (current_control == 3){user_key_turn_right = 43;} IF (current_control == 4){user_key_turn_left = 43;} IF (current_control == 5){user_key_look_up = 43;} IF (current_control == 6){user_key_look_down = 43;} IF (current_control == 7){user_key_strafe_right = 43;} IF (current_control == 8){user_key_strafe_left = 43;} IF (current_control == 9){user_key_run = 43;} IF (current_control == 10){user_key_jump = 43;} IF (current_control == 11){user_key_use_weapon = 43;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F4_event () { IF (current_control == 1){user_key_forward = 44;} IF (current_control == 2){user_key_reverse = 44;} IF (current_control == 3){user_key_turn_right = 44;} IF (current_control == 4){user_key_turn_left = 44;} IF (current_control == 5){user_key_look_up = 44;} IF (current_control == 6){user_key_look_down = 44;} IF (current_control == 7){user_key_strafe_right = 44;} IF (current_control == 8){user_key_strafe_left = 44;} IF (current_control == 9){user_key_run = 44;} IF (current_control == 10){user_key_jump = 44;} IF (current_control == 11){user_key_use_weapon = 44;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F5_event () { IF (current_control == 1){user_key_forward = 45;} IF (current_control == 2){user_key_reverse = 45;} IF (current_control == 3){user_key_turn_right = 45;} IF (current_control == 4){user_key_turn_left = 45;} IF (current_control == 5){user_key_look_up = 45;} IF (current_control == 6){user_key_look_down = 45;} IF (current_control == 7){user_key_strafe_right = 45;} IF (current_control == 8){user_key_strafe_left = 45;} IF (current_control == 9){user_key_run = 45;} IF (current_control == 10){user_key_jump = 45;} IF (current_control == 11){user_key_use_weapon = 45;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F6_event () { IF (current_control == 1){user_key_forward = 46;} IF (current_control == 2){user_key_reverse = 46;} IF (current_control == 3){user_key_turn_right = 46;} IF (current_control == 4){user_key_turn_left = 46;} IF (current_control == 5){user_key_look_up = 46;} IF (current_control == 6){user_key_look_down = 46;} IF (current_control == 7){user_key_strafe_right = 46;} IF (current_control == 8){user_key_strafe_left = 46;} IF (current_control == 9){user_key_run = 46;} IF (current_control == 10){user_key_jump = 46;} IF (current_control == 11){user_key_use_weapon = 46;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F7_event () { IF (current_control == 1){user_key_forward = 47;} IF (current_control == 2){user_key_reverse = 47;} IF (current_control == 3){user_key_turn_right = 47;} IF (current_control == 4){user_key_turn_left = 47;} IF (current_control == 5){user_key_look_up = 47;} IF (current_control == 6){user_key_look_down = 47;} IF (current_control == 7){user_key_strafe_right = 47;} IF (current_control == 8){user_key_strafe_left = 47;} IF (current_control == 9){user_key_run = 47;} IF (current_control == 10){user_key_jump = 47;} IF (current_control == 11){user_key_use_weapon = 47;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F8_event () { IF (current_control == 1){user_key_forward = 48;} IF (current_control == 2){user_key_reverse = 48;} IF (current_control == 3){user_key_turn_right = 48;} IF (current_control == 4){user_key_turn_left = 48;} IF (current_control == 5){user_key_look_up = 48;} IF (current_control == 6){user_key_look_down = 48;} IF (current_control == 7){user_key_strafe_right = 48;} IF (current_control == 8){user_key_strafe_left = 48;} IF (current_control == 9){user_key_run = 48;} IF (current_control == 10){user_key_jump = 48;} IF (current_control == 11){user_key_use_weapon = 48;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F9_event () { IF (current_control == 1){user_key_forward = 49;} IF (current_control == 2){user_key_reverse = 49;} IF (current_control == 3){user_key_turn_right = 49;} IF (current_control == 4){user_key_turn_left = 49;} IF (current_control == 5){user_key_look_up = 49;} IF (current_control == 6){user_key_look_down = 49;} IF (current_control == 7){user_key_strafe_right = 49;} IF (current_control == 8){user_key_strafe_left = 49;} IF (current_control == 9){user_key_run = 49;} IF (current_control == 10){user_key_jump = 49;} IF (current_control == 11){user_key_use_weapon = 49;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F10_event () { IF (current_control == 1){user_key_forward = 50;} IF (current_control == 2){user_key_reverse = 50;} IF (current_control == 3){user_key_turn_right = 50;} IF (current_control == 4){user_key_turn_left = 50;} IF (current_control == 5){user_key_look_up = 50;} IF (current_control == 6){user_key_look_down = 50;} IF (current_control == 7){user_key_strafe_right = 50;} IF (current_control == 8){user_key_strafe_left = 50;} IF (current_control == 9){user_key_run = 50;} IF (current_control == 10){user_key_jump = 50;} IF (current_control == 11){user_key_use_weapon = 50;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F11_event () { IF (current_control == 1){user_key_forward = 51;} IF (current_control == 2){user_key_reverse = 51;} IF (current_control == 3){user_key_turn_right = 51;} IF (current_control == 4){user_key_turn_left = 51;} IF (current_control == 5){user_key_look_up = 51;} IF (current_control == 6){user_key_look_down = 51;} IF (current_control == 7){user_key_strafe_right = 51;} IF (current_control == 8){user_key_strafe_left = 51;} IF (current_control == 9){user_key_run = 51;} IF (current_control == 10){user_key_jump = 51;} IF (current_control == 11){user_key_use_weapon = 51;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION F12_event () { IF (current_control == 1){user_key_forward = 52;} IF (current_control == 2){user_key_reverse = 52;} IF (current_control == 3){user_key_turn_right = 52;} IF (current_control == 4){user_key_turn_left = 52;} IF (current_control == 5){user_key_look_up = 52;} IF (current_control == 6){user_key_look_down = 52;} IF (current_control == 7){user_key_strafe_right = 52;} IF (current_control == 8){user_key_strafe_left = 52;} IF (current_control == 9){user_key_run = 52;} IF (current_control == 10){user_key_jump = 52;} IF (current_control == 11){user_key_use_weapon = 52;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Esc_event () { IF (current_control == 1){user_key_forward = 53;} IF (current_control == 2){user_key_reverse = 53;} IF (current_control == 3){user_key_turn_right = 53;} IF (current_control == 4){user_key_turn_left = 53;} IF (current_control == 5){user_key_look_up = 53;} IF (current_control == 6){user_key_look_down = 53;} IF (current_control == 7){user_key_strafe_right = 53;} IF (current_control == 8){user_key_strafe_left = 53;} IF (current_control == 9){user_key_run = 53;} IF (current_control == 10){user_key_jump = 53;} IF (current_control == 11){user_key_use_weapon = 53;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Pause_event () { IF (current_control == 1){user_key_forward = 54;} IF (current_control == 2){user_key_reverse = 54;} IF (current_control == 3){user_key_turn_right = 54;} IF (current_control == 4){user_key_turn_left = 54;} IF (current_control == 5){user_key_look_up = 54;} IF (current_control == 6){user_key_look_down = 54;} IF (current_control == 7){user_key_strafe_right = 54;} IF (current_control == 8){user_key_strafe_left = 54;} IF (current_control == 9){user_key_run = 54;} IF (current_control == 10){user_key_jump = 54;} IF (current_control == 11){user_key_use_weapon = 54;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Tilde_event () { IF (current_control == 1){user_key_forward = 55;} IF (current_control == 2){user_key_reverse = 55;} IF (current_control == 3){user_key_turn_right = 55;} IF (current_control == 4){user_key_turn_left = 55;} IF (current_control == 5){user_key_look_up = 55;} IF (current_control == 6){user_key_look_down = 55;} IF (current_control == 7){user_key_strafe_right = 55;} IF (current_control == 8){user_key_strafe_left = 55;} IF (current_control == 9){user_key_run = 55;} IF (current_control == 10){user_key_jump = 55;} IF (current_control == 11){user_key_use_weapon = 55;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Minus_event () { IF (current_control == 1){user_key_forward = 56;} IF (current_control == 2){user_key_reverse = 56;} IF (current_control == 3){user_key_turn_right = 56;} IF (current_control == 4){user_key_turn_left = 56;} IF (current_control == 5){user_key_look_up = 56;} IF (current_control == 6){user_key_look_down = 56;} IF (current_control == 7){user_key_strafe_right = 56;} IF (current_control == 8){user_key_strafe_left = 56;} IF (current_control == 9){user_key_run = 56;} IF (current_control == 10){user_key_jump = 56;} IF (current_control == 11){user_key_use_weapon = 56;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Plus_event () { IF (current_control == 1){user_key_forward = 57;} IF (current_control == 2){user_key_reverse = 57;} IF (current_control == 3){user_key_turn_right = 57;} IF (current_control == 4){user_key_turn_left = 57;} IF (current_control == 5){user_key_look_up = 57;} IF (current_control == 6){user_key_look_down = 57;} IF (current_control == 7){user_key_strafe_right = 57;} IF (current_control == 8){user_key_strafe_left = 57;} IF (current_control == 9){user_key_run = 57;} IF (current_control == 10){user_key_jump = 57;} IF (current_control == 11){user_key_use_weapon = 57;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Backslash_event () { IF (current_control == 1){user_key_forward = 58;} IF (current_control == 2){user_key_reverse = 58;} IF (current_control == 3){user_key_turn_right = 58;} IF (current_control == 4){user_key_turn_left = 58;} IF (current_control == 5){user_key_look_up = 58;} IF (current_control == 6){user_key_look_down = 58;} IF (current_control == 7){user_key_strafe_right = 58;} IF (current_control == 8){user_key_strafe_left = 58;} IF (current_control == 9){user_key_run = 58;} IF (current_control == 10){user_key_jump = 58;} IF (current_control == 11){user_key_use_weapon = 58;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Backspace_event () { IF (current_control == 1){user_key_forward = 59;} IF (current_control == 2){user_key_reverse = 59;} IF (current_control == 3){user_key_turn_right = 59;} IF (current_control == 4){user_key_turn_left = 59;} IF (current_control == 5){user_key_look_up = 59;} IF (current_control == 6){user_key_look_down = 59;} IF (current_control == 7){user_key_strafe_right = 59;} IF (current_control == 8){user_key_strafe_left = 59;} IF (current_control == 9){user_key_run = 59;} IF (current_control == 10){user_key_jump = 59;} IF (current_control == 11){user_key_use_weapon = 59;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Insert_event () { IF (current_control == 1){user_key_forward = 60;} IF (current_control == 2){user_key_reverse = 60;} IF (current_control == 3){user_key_turn_right = 60;} IF (current_control == 4){user_key_turn_left = 60;} IF (current_control == 5){user_key_look_up = 60;} IF (current_control == 6){user_key_look_down = 60;} IF (current_control == 7){user_key_strafe_right = 60;} IF (current_control == 8){user_key_strafe_left = 60;} IF (current_control == 9){user_key_run = 60;} IF (current_control == 10){user_key_jump = 60;} IF (current_control == 11){user_key_use_weapon = 60;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Home_event () { IF (current_control == 1){user_key_forward = 61;} IF (current_control == 2){user_key_reverse = 61;} IF (current_control == 3){user_key_turn_right = 61;} IF (current_control == 4){user_key_turn_left = 61;} IF (current_control == 5){user_key_look_up = 61;} IF (current_control == 6){user_key_look_down = 61;} IF (current_control == 7){user_key_strafe_right = 61;} IF (current_control == 8){user_key_strafe_left = 61;} IF (current_control == 9){user_key_run = 61;} IF (current_control == 10){user_key_jump = 61;} IF (current_control == 11){user_key_use_weapon = 61;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION PageUp_event () { IF (current_control == 1){user_key_forward = 62;} IF (current_control == 2){user_key_reverse = 62;} IF (current_control == 3){user_key_turn_right = 62;} IF (current_control == 4){user_key_turn_left = 62;} IF (current_control == 5){user_key_look_up = 62;} IF (current_control == 6){user_key_look_down = 62;} IF (current_control == 7){user_key_strafe_right = 62;} IF (current_control == 8){user_key_strafe_left = 62;} IF (current_control == 9){user_key_run = 62;} IF (current_control == 10){user_key_jump = 62;} IF (current_control == 11){user_key_use_weapon = 62;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Delete_event () { IF (current_control == 1){user_key_forward = 63;} IF (current_control == 2){user_key_reverse = 63;} IF (current_control == 3){user_key_turn_right = 63;} IF (current_control == 4){user_key_turn_left = 63;} IF (current_control == 5){user_key_look_up = 63;} IF (current_control == 6){user_key_look_down = 63;} IF (current_control == 7){user_key_strafe_right = 63;} IF (current_control == 8){user_key_strafe_left = 63;} IF (current_control == 9){user_key_run = 63;} IF (current_control == 10){user_key_jump = 63;} IF (current_control == 11){user_key_use_weapon = 63;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION End_event () { IF (current_control == 1){user_key_forward = 64;} IF (current_control == 2){user_key_reverse = 64;} IF (current_control == 3){user_key_turn_right = 64;} IF (current_control == 4){user_key_turn_left = 64;} IF (current_control == 5){user_key_look_up = 64;} IF (current_control == 6){user_key_look_down = 64;} IF (current_control == 7){user_key_strafe_right = 64;} IF (current_control == 8){user_key_strafe_left = 64;} IF (current_control == 9){user_key_run = 64;} IF (current_control == 10){user_key_jump = 64;} IF (current_control == 11){user_key_use_weapon = 64;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION PageDown_event () { IF (current_control == 1){user_key_forward = 65;} IF (current_control == 2){user_key_reverse = 65;} IF (current_control == 3){user_key_turn_right = 65;} IF (current_control == 4){user_key_turn_left = 65;} IF (current_control == 5){user_key_look_up = 65;} IF (current_control == 6){user_key_look_down = 65;} IF (current_control == 7){user_key_strafe_right = 65;} IF (current_control == 8){user_key_strafe_left = 65;} IF (current_control == 9){user_key_run = 65;} IF (current_control == 10){user_key_jump = 65;} IF (current_control == 11){user_key_use_weapon = 65;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Tab_event () { IF (current_control == 1){user_key_forward = 66;} IF (current_control == 2){user_key_reverse = 66;} IF (current_control == 3){user_key_turn_right = 66;} IF (current_control == 4){user_key_turn_left = 66;} IF (current_control == 5){user_key_look_up = 66;} IF (current_control == 6){user_key_look_down = 66;} IF (current_control == 7){user_key_strafe_right = 66;} IF (current_control == 8){user_key_strafe_left = 66;} IF (current_control == 9){user_key_run = 66;} IF (current_control == 10){user_key_jump = 66;} IF (current_control == 11){user_key_use_weapon = 66;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION BracketLeft_event () { IF (current_control == 1){user_key_forward = 67;} IF (current_control == 2){user_key_reverse = 67;} IF (current_control == 3){user_key_turn_right = 67;} IF (current_control == 4){user_key_turn_left = 67;} IF (current_control == 5){user_key_look_up = 67;} IF (current_control == 6){user_key_look_down = 67;} IF (current_control == 7){user_key_strafe_right = 67;} IF (current_control == 8){user_key_strafe_left = 67;} IF (current_control == 9){user_key_run = 67;} IF (current_control == 10){user_key_jump = 67;} IF (current_control == 11){user_key_use_weapon = 67;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION BracketRight_event () { IF (current_control == 1){user_key_forward = 68;} IF (current_control == 2){user_key_reverse = 68;} IF (current_control == 3){user_key_turn_right = 68;} IF (current_control == 4){user_key_turn_left = 68;} IF (current_control == 5){user_key_look_up = 68;} IF (current_control == 6){user_key_look_down = 68;} IF (current_control == 7){user_key_strafe_right = 68;} IF (current_control == 8){user_key_strafe_left = 68;} IF (current_control == 9){user_key_run = 68;} IF (current_control == 10){user_key_jump = 68;} IF (current_control == 11){user_key_use_weapon = 68;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Semicolon_event () { IF (current_control == 1){user_key_forward = 69;} IF (current_control == 2){user_key_reverse = 69;} IF (current_control == 3){user_key_turn_right = 69;} IF (current_control == 4){user_key_turn_left = 69;} IF (current_control == 5){user_key_look_up = 69;} IF (current_control == 6){user_key_look_down = 69;} IF (current_control == 7){user_key_strafe_right = 69;} IF (current_control == 8){user_key_strafe_left = 69;} IF (current_control == 9){user_key_run = 69;} IF (current_control == 10){user_key_jump = 69;} IF (current_control == 11){user_key_use_weapon = 69;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Apostrophe_event () { IF (current_control == 1){user_key_forward = 70;} IF (current_control == 2){user_key_reverse = 70;} IF (current_control == 3){user_key_turn_right = 70;} IF (current_control == 4){user_key_turn_left = 70;} IF (current_control == 5){user_key_look_up = 70;} IF (current_control == 6){user_key_look_down = 70;} IF (current_control == 7){user_key_strafe_right = 70;} IF (current_control == 8){user_key_strafe_left = 70;} IF (current_control == 9){user_key_run = 70;} IF (current_control == 10){user_key_jump = 70;} IF (current_control == 11){user_key_use_weapon = 70;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Enter_event () { IF (current_control == 1){user_key_forward = 71;} IF (current_control == 2){user_key_reverse = 71;} IF (current_control == 3){user_key_turn_right = 71;} IF (current_control == 4){user_key_turn_left = 71;} IF (current_control == 5){user_key_look_up = 71;} IF (current_control == 6){user_key_look_down = 71;} IF (current_control == 7){user_key_strafe_right = 71;} IF (current_control == 8){user_key_strafe_left = 71;} IF (current_control == 9){user_key_run = 71;} IF (current_control == 10){user_key_jump = 71;} IF (current_control == 11){user_key_use_weapon = 71;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION ShiftLeft_event () { IF (current_control == 1){user_key_forward = 72;} IF (current_control == 2){user_key_reverse = 72;} IF (current_control == 3){user_key_turn_right = 72;} IF (current_control == 4){user_key_turn_left = 72;} IF (current_control == 5){user_key_look_up = 72;} IF (current_control == 6){user_key_look_down = 72;} IF (current_control == 7){user_key_strafe_right = 72;} IF (current_control == 8){user_key_strafe_left = 72;} IF (current_control == 9){user_key_run = 72;} IF (current_control == 10){user_key_jump = 72;} IF (current_control == 11){user_key_use_weapon = 72;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION ShiftRight_event () { IF (current_control == 1){user_key_forward = 72;} IF (current_control == 2){user_key_reverse = 72;} IF (current_control == 3){user_key_turn_right = 72;} IF (current_control == 4){user_key_turn_left = 72;} IF (current_control == 5){user_key_look_up = 72;} IF (current_control == 6){user_key_look_down = 72;} IF (current_control == 7){user_key_strafe_right = 72;} IF (current_control == 8){user_key_strafe_left = 72;} IF (current_control == 9){user_key_run = 72;} IF (current_control == 10){user_key_jump = 72;} IF (current_control == 11){user_key_use_weapon = 72;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Comma_event () { IF (current_control == 1){user_key_forward = 73;} IF (current_control == 2){user_key_reverse = 73;} IF (current_control == 3){user_key_turn_right = 73;} IF (current_control == 4){user_key_turn_left = 73;} IF (current_control == 5){user_key_look_up = 73;} IF (current_control == 6){user_key_look_down = 73;} IF (current_control == 7){user_key_strafe_right = 73;} IF (current_control == 8){user_key_strafe_left = 73;} IF (current_control == 9){user_key_run = 73;} IF (current_control == 10){user_key_jump = 73;} IF (current_control == 11){user_key_use_weapon = 73;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Period_event () { IF (current_control == 1){user_key_forward = 74;} IF (current_control == 2){user_key_reverse = 74;} IF (current_control == 3){user_key_turn_right = 74;} IF (current_control == 4){user_key_turn_left = 74;} IF (current_control == 5){user_key_look_up = 74;} IF (current_control == 6){user_key_look_down = 74;} IF (current_control == 7){user_key_strafe_right = 74;} IF (current_control == 8){user_key_strafe_left = 74;} IF (current_control == 9){user_key_run = 74;} IF (current_control == 10){user_key_jump = 74;} IF (current_control == 11){user_key_use_weapon = 74;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Slash_event () { IF (current_control == 1){user_key_forward = 75;} IF (current_control == 2){user_key_reverse = 75;} IF (current_control == 3){user_key_turn_right = 75;} IF (current_control == 4){user_key_turn_left = 75;} IF (current_control == 5){user_key_look_up = 75;} IF (current_control == 6){user_key_look_down = 75;} IF (current_control == 7){user_key_strafe_right = 75;} IF (current_control == 8){user_key_strafe_left = 75;} IF (current_control == 9){user_key_run = 75;} IF (current_control == 10){user_key_jump = 75;} IF (current_control == 11){user_key_use_weapon = 75;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION ControlLeft_event () { IF (current_control == 1){user_key_forward = 76;} IF (current_control == 2){user_key_reverse = 76;} IF (current_control == 3){user_key_turn_right = 76;} IF (current_control == 4){user_key_turn_left = 76;} IF (current_control == 5){user_key_look_up = 76;} IF (current_control == 6){user_key_look_down = 76;} IF (current_control == 7){user_key_strafe_right = 76;} IF (current_control == 8){user_key_strafe_left = 76;} IF (current_control == 9){user_key_run = 76;} IF (current_control == 10){user_key_jump = 76;} IF (current_control == 11){user_key_use_weapon = 76;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION ControlRight_event () { IF (current_control == 1){user_key_forward = 76;} IF (current_control == 2){user_key_reverse = 76;} IF (current_control == 3){user_key_turn_right = 76;} IF (current_control == 4){user_key_turn_left = 76;} IF (current_control == 5){user_key_look_up = 76;} IF (current_control == 6){user_key_look_down = 76;} IF (current_control == 7){user_key_strafe_right = 76;} IF (current_control == 8){user_key_strafe_left = 76;} IF (current_control == 9){user_key_run = 76;} IF (current_control == 10){user_key_jump = 76;} IF (current_control == 11){user_key_use_weapon = 76;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION AlternateLeft_event () { IF (current_control == 1){user_key_forward = 77;} IF (current_control == 2){user_key_reverse = 77;} IF (current_control == 3){user_key_turn_right = 77;} IF (current_control == 4){user_key_turn_left = 77;} IF (current_control == 5){user_key_look_up = 77;} IF (current_control == 6){user_key_look_down = 77;} IF (current_control == 7){user_key_strafe_right = 77;} IF (current_control == 8){user_key_strafe_left = 77;} IF (current_control == 9){user_key_run = 77;} IF (current_control == 10){user_key_jump = 77;} IF (current_control == 11){user_key_use_weapon = 77;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION AlternateRight_event () { IF (current_control == 1){user_key_forward = 77;} IF (current_control == 2){user_key_reverse = 77;} IF (current_control == 3){user_key_turn_right = 77;} IF (current_control == 4){user_key_turn_left = 77;} IF (current_control == 5){user_key_look_up = 77;} IF (current_control == 6){user_key_look_down = 77;} IF (current_control == 7){user_key_strafe_right = 77;} IF (current_control == 8){user_key_strafe_left = 77;} IF (current_control == 9){user_key_run = 77;} IF (current_control == 10){user_key_jump = 77;} IF (current_control == 11){user_key_use_weapon = 77;} key_panels_on(); choose_keys.VISIBLE = OFF; } FUNCTION Space_event () { IF (current_control == 1){user_key_forward = 78;} IF (current_control == 2){user_key_reverse = 78;} IF (current_control == 3){user_key_turn_right = 78;} IF (current_control == 4){user_key_turn_left = 78;} IF (current_control == 5){user_key_look_up = 78;} IF (current_control == 6){user_key_look_down = 78;} IF (current_control == 7){user_key_strafe_right = 78;} IF (current_control == 8){user_key_strafe_left = 78;} IF (current_control == 9){user_key_run = 78;} IF (current_control == 10){user_key_jump = 78;} IF (current_control == 11){user_key_use_weapon = 78;} key_panels_on(); choose_keys.VISIBLE = OFF; } // shows the string that indicates which key is used for a control FUNCTION key_panels_on () { IF (user_key_forward == 1){forward_indicator.STRING = "A";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 2){forward_indicator.STRING = "B";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 3){forward_indicator.STRING = "C";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 4){forward_indicator.STRING = "D";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 5){forward_indicator.STRING = "E";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 6){forward_indicator.STRING = "F";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 7){forward_indicator.STRING = "G";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 8){forward_indicator.STRING = "H";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 9){forward_indicator.STRING = "I";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 10){forward_indicator.STRING = "J";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 11){forward_indicator.STRING = "K";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 12){forward_indicator.STRING = "L";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 13){forward_indicator.STRING = "M";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 14){forward_indicator.STRING = "N";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 15){forward_indicator.STRING = "O";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 16){forward_indicator.STRING = "P";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 17){forward_indicator.STRING = "Q";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 18){forward_indicator.STRING = "R";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 19){forward_indicator.STRING = "S";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 20){forward_indicator.STRING = "T";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 21){forward_indicator.STRING = "U";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 22){forward_indicator.STRING = "V";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 23){forward_indicator.STRING = "W";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 24){forward_indicator.STRING = "X";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 25){forward_indicator.STRING = "Y";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 26){forward_indicator.STRING = "Z";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 27){forward_indicator.STRING = "UP ARROW";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 28){forward_indicator.STRING = "DOWN ARROW";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 29){forward_indicator.STRING = "RIGHT ARROW";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 30){forward_indicator.STRING = "LEFT ARROW";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 31){forward_indicator.STRING = "1";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 32){forward_indicator.STRING = "2";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 33){forward_indicator.STRING = "3";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 34){forward_indicator.STRING = "4";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 35){forward_indicator.STRING = "5";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 36){forward_indicator.STRING = "6";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 37){forward_indicator.STRING = "7";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 38){forward_indicator.STRING = "8";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 39){forward_indicator.STRING = "9";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 40){forward_indicator.STRING = "0";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 41){forward_indicator.STRING = "F1";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 42){forward_indicator.STRING = "F2";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 43){forward_indicator.STRING = "F3";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 44){forward_indicator.STRING = "F4";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 45){forward_indicator.STRING = "F5";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 46){forward_indicator.STRING = "F6";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 47){forward_indicator.STRING = "F7";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 48){forward_indicator.STRING = "F8";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 49){forward_indicator.STRING = "F9";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 50){forward_indicator.STRING = "F10";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 51){forward_indicator.STRING = "F11";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 52){forward_indicator.STRING = "F12";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 53){forward_indicator.STRING = "ESCAPE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 54){forward_indicator.STRING = "PAUSE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 55){forward_indicator.STRING = "TILDE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 56){forward_indicator.STRING = "MINUS";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 57){forward_indicator.STRING = "EQUALS";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 58){forward_indicator.STRING = "BACKSLASH";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 59){forward_indicator.STRING = "BACKSPACE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 60){forward_indicator.STRING = "INSERT";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 61){forward_indicator.STRING = "HOME";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 62){forward_indicator.STRING = "PAGE UP";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 63){forward_indicator.STRING = "DELETE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 64){forward_indicator.STRING = "END";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 65){forward_indicator.STRING = "PAGE DOWN";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 66){forward_indicator.STRING = "TAB";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 67){forward_indicator.STRING = "LEFT BRACKET";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 68){forward_indicator.STRING = "RIGHT BRACKET";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 69){forward_indicator.STRING = "SEMICOLON";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 70){forward_indicator.STRING = "APOSTROPHE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 71){forward_indicator.STRING = "ENTER";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 72){forward_indicator.STRING = "SHIFT";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 73){forward_indicator.STRING = "COMMA";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 74){forward_indicator.STRING = "PERIOD";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 75){forward_indicator.STRING = "SLASH";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 76){forward_indicator.STRING = "CONTROL";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 77){forward_indicator.STRING = "ALTERNATE";forward_indicator.VISIBLE = ON;} IF (user_key_forward == 78){forward_indicator.STRING = "SPACE";forward_indicator.VISIBLE = ON;} IF (user_key_reverse == 1){reverse_indicator.STRING = "A";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 2){reverse_indicator.STRING = "B";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 3){reverse_indicator.STRING = "C";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 4){reverse_indicator.STRING = "D";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 5){reverse_indicator.STRING = "E";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 6){reverse_indicator.STRING = "F";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 7){reverse_indicator.STRING = "G";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 8){reverse_indicator.STRING = "H";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 9){reverse_indicator.STRING = "I";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 10){reverse_indicator.STRING = "J";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 11){reverse_indicator.STRING = "K";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 12){reverse_indicator.STRING = "L";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 13){reverse_indicator.STRING = "M";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 14){reverse_indicator.STRING = "N";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 15){reverse_indicator.STRING = "O";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 16){reverse_indicator.STRING = "P";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 17){reverse_indicator.STRING = "Q";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 18){reverse_indicator.STRING = "R";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 19){reverse_indicator.STRING = "S";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 20){reverse_indicator.STRING = "T";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 21){reverse_indicator.STRING = "U";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 22){reverse_indicator.STRING = "V";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 23){reverse_indicator.STRING = "W";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 24){reverse_indicator.STRING = "X";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 25){reverse_indicator.STRING = "Y";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 26){reverse_indicator.STRING = "Z";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 27){reverse_indicator.STRING = "UP ARROW";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 28){reverse_indicator.STRING = "DOWN ARROW";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 29){reverse_indicator.STRING = "RIGHT ARROW";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 30){reverse_indicator.STRING = "LEFT ARROW";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 31){reverse_indicator.STRING = "1";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 32){reverse_indicator.STRING = "2";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 33){reverse_indicator.STRING = "3";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 34){reverse_indicator.STRING = "4";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 35){reverse_indicator.STRING = "5";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 36){reverse_indicator.STRING = "6";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 37){reverse_indicator.STRING = "7";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 38){reverse_indicator.STRING = "8";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 39){reverse_indicator.STRING = "9";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 40){reverse_indicator.STRING = "0";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 41){reverse_indicator.STRING = "F1";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 42){reverse_indicator.STRING = "F2";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 43){reverse_indicator.STRING = "F3";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 44){reverse_indicator.STRING = "F4";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 45){reverse_indicator.STRING = "F5";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 46){reverse_indicator.STRING = "F6";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 47){reverse_indicator.STRING = "F7";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 48){reverse_indicator.STRING = "F8";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 49){reverse_indicator.STRING = "F9";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 50){reverse_indicator.STRING = "F10";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 51){reverse_indicator.STRING = "F11";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 52){reverse_indicator.STRING = "F12";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 53){reverse_indicator.STRING = "ESCAPE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 54){reverse_indicator.STRING = "PAUSE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 55){reverse_indicator.STRING = "TILDE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 56){reverse_indicator.STRING = "MINUS";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 57){reverse_indicator.STRING = "EQUALS";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 58){reverse_indicator.STRING = "BACKSLASH";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 59){reverse_indicator.STRING = "BACKSPACE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 60){reverse_indicator.STRING = "INSERT";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 61){reverse_indicator.STRING = "HOME";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 62){reverse_indicator.STRING = "PAGE UP";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 63){reverse_indicator.STRING = "DELETE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 64){reverse_indicator.STRING = "END";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 65){reverse_indicator.STRING = "PAGE DOWN";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 66){reverse_indicator.STRING = "TAB";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 67){reverse_indicator.STRING = "LEFT BRACKET";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 68){reverse_indicator.STRING = "RIGHT BRACKET";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 69){reverse_indicator.STRING = "SEMICOLON";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 70){reverse_indicator.STRING = "APOSTROPHE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 71){reverse_indicator.STRING = "ENTER";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 72){reverse_indicator.STRING = "SHIFT";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 73){reverse_indicator.STRING = "COMMA";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 74){reverse_indicator.STRING = "PERIOD";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 75){reverse_indicator.STRING = "SLASH";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 76){reverse_indicator.STRING = "CONTROL";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 77){reverse_indicator.STRING = "ALTERNATE";reverse_indicator.VISIBLE = ON;} IF (user_key_reverse == 78){reverse_indicator.STRING = "SPACE";reverse_indicator.VISIBLE = ON;} IF (user_key_turn_right == 1){turn_right_indicator.STRING = "A";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 2){turn_right_indicator.STRING = "B";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 3){turn_right_indicator.STRING = "C";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 4){turn_right_indicator.STRING = "D";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 5){turn_right_indicator.STRING = "E";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 6){turn_right_indicator.STRING = "F";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 7){turn_right_indicator.STRING = "G";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 8){turn_right_indicator.STRING = "H";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 9){turn_right_indicator.STRING = "I";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 10){turn_right_indicator.STRING = "J";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 11){turn_right_indicator.STRING = "K";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 12){turn_right_indicator.STRING = "L";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 13){turn_right_indicator.STRING = "M";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 14){turn_right_indicator.STRING = "N";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 15){turn_right_indicator.STRING = "O";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 16){turn_right_indicator.STRING = "P";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 17){turn_right_indicator.STRING = "Q";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 18){turn_right_indicator.STRING = "R";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 19){turn_right_indicator.STRING = "S";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 20){turn_right_indicator.STRING = "T";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 21){turn_right_indicator.STRING = "U";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 22){turn_right_indicator.STRING = "V";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 23){turn_right_indicator.STRING = "W";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 24){turn_right_indicator.STRING = "X";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 25){turn_right_indicator.STRING = "Y";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 26){turn_right_indicator.STRING = "Z";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 27){turn_right_indicator.STRING = "UP ARROW";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 28){turn_right_indicator.STRING = "DOWN ARROW";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 29){turn_right_indicator.STRING = "RIGHT ARROW";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 30){turn_right_indicator.STRING = "LEFT ARROW";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 31){turn_right_indicator.STRING = "1";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 32){turn_right_indicator.STRING = "2";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 33){turn_right_indicator.STRING = "3";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 34){turn_right_indicator.STRING = "4";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 35){turn_right_indicator.STRING = "5";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 36){turn_right_indicator.STRING = "6";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 37){turn_right_indicator.STRING = "7";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 38){turn_right_indicator.STRING = "8";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 39){turn_right_indicator.STRING = "9";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 40){turn_right_indicator.STRING = "0";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 41){turn_right_indicator.STRING = "F1";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 42){turn_right_indicator.STRING = "F2";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 43){turn_right_indicator.STRING = "F3";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 44){turn_right_indicator.STRING = "F4";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 45){turn_right_indicator.STRING = "F5";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 46){turn_right_indicator.STRING = "F6";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 47){turn_right_indicator.STRING = "F7";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 48){turn_right_indicator.STRING = "F8";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 49){turn_right_indicator.STRING = "F9";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 50){turn_right_indicator.STRING = "F10";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 51){turn_right_indicator.STRING = "F11";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 52){turn_right_indicator.STRING = "F12";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 53){turn_right_indicator.STRING = "ESCAPE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 54){turn_right_indicator.STRING = "PAUSE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 55){turn_right_indicator.STRING = "TILDE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 56){turn_right_indicator.STRING = "MINUS";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 57){turn_right_indicator.STRING = "EQUALS";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 58){turn_right_indicator.STRING = "BACKSLASH";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 59){turn_right_indicator.STRING = "BACKSPACE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 60){turn_right_indicator.STRING = "INSERT";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 61){turn_right_indicator.STRING = "HOME";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 62){turn_right_indicator.STRING = "PAGE UP";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 63){turn_right_indicator.STRING = "DELETE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 64){turn_right_indicator.STRING = "END";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 65){turn_right_indicator.STRING = "PAGE DOWN";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 66){turn_right_indicator.STRING = "TAB";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 67){turn_right_indicator.STRING = "LEFT BRACKET";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 68){turn_right_indicator.STRING = "RIGHT BRACKET";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 69){turn_right_indicator.STRING = "SEMICOLON";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 70){turn_right_indicator.STRING = "APOSTROPHE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 71){turn_right_indicator.STRING = "ENTER";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 72){turn_right_indicator.STRING = "SHIFT";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 73){turn_right_indicator.STRING = "COMMA";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 74){turn_right_indicator.STRING = "PERIOD";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 75){turn_right_indicator.STRING = "SLASH";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 76){turn_right_indicator.STRING = "CONTROL";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 77){turn_right_indicator.STRING = "ALTERNATE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_right == 78){turn_right_indicator.STRING = "SPACE";turn_right_indicator.VISIBLE = ON;} IF (user_key_turn_left == 1){turn_left_indicator.STRING = "A";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 2){turn_left_indicator.STRING = "B";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 3){turn_left_indicator.STRING = "C";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 4){turn_left_indicator.STRING = "D";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 5){turn_left_indicator.STRING = "E";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 6){turn_left_indicator.STRING = "F";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 7){turn_left_indicator.STRING = "G";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 8){turn_left_indicator.STRING = "H";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 9){turn_left_indicator.STRING = "I";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 10){turn_left_indicator.STRING = "J";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 11){turn_left_indicator.STRING = "K";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 12){turn_left_indicator.STRING = "L";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 13){turn_left_indicator.STRING = "M";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 14){turn_left_indicator.STRING = "N";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 15){turn_left_indicator.STRING = "O";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 16){turn_left_indicator.STRING = "P";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 17){turn_left_indicator.STRING = "Q";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 18){turn_left_indicator.STRING = "R";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 19){turn_left_indicator.STRING = "S";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 20){turn_left_indicator.STRING = "T";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 21){turn_left_indicator.STRING = "U";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 22){turn_left_indicator.STRING = "V";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 23){turn_left_indicator.STRING = "W";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 24){turn_left_indicator.STRING = "X";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 25){turn_left_indicator.STRING = "Y";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 26){turn_left_indicator.STRING = "Z";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 27){turn_left_indicator.STRING = "UP ARROW";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 28){turn_left_indicator.STRING = "DOWN ARROW";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 29){turn_left_indicator.STRING = "RIGHT ARROW";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 30){turn_left_indicator.STRING = "LEFT ARROW";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 31){turn_left_indicator.STRING = "1";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 32){turn_left_indicator.STRING = "2";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 33){turn_left_indicator.STRING = "3";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 34){turn_left_indicator.STRING = "4";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 35){turn_left_indicator.STRING = "5";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 36){turn_left_indicator.STRING = "6";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 37){turn_left_indicator.STRING = "7";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 38){turn_left_indicator.STRING = "8";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 39){turn_left_indicator.STRING = "9";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 40){turn_left_indicator.STRING = "0";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 41){turn_left_indicator.STRING = "F1";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 42){turn_left_indicator.STRING = "F2";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 43){turn_left_indicator.STRING = "F3";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 44){turn_left_indicator.STRING = "F4";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 45){turn_left_indicator.STRING = "F5";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 46){turn_left_indicator.STRING = "F6";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 47){turn_left_indicator.STRING = "F7";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 48){turn_left_indicator.STRING = "F8";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 49){turn_left_indicator.STRING = "F9";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 50){turn_left_indicator.STRING = "F10";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 51){turn_left_indicator.STRING = "F11";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 52){turn_left_indicator.STRING = "F12";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 53){turn_left_indicator.STRING = "ESCAPE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 54){turn_left_indicator.STRING = "PAUSE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 55){turn_left_indicator.STRING = "TILDE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 56){turn_left_indicator.STRING = "MINUS";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 57){turn_left_indicator.STRING = "EQUALS";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 58){turn_left_indicator.STRING = "BACKSLASH";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 59){turn_left_indicator.STRING = "BACKSPACE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 60){turn_left_indicator.STRING = "INSERT";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 61){turn_left_indicator.STRING = "HOME";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 62){turn_left_indicator.STRING = "PAGE UP";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 63){turn_left_indicator.STRING = "DELETE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 64){turn_left_indicator.STRING = "END";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 65){turn_left_indicator.STRING = "PAGE DOWN";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 66){turn_left_indicator.STRING = "TAB";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 67){turn_left_indicator.STRING = "LEFT BRACKET";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 68){turn_left_indicator.STRING = "RIGHT BRACKET";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 69){turn_left_indicator.STRING = "SEMICOLON";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 70){turn_left_indicator.STRING = "APOSTROPHE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 71){turn_left_indicator.STRING = "ENTER";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 72){turn_left_indicator.STRING = "SHIFT";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 73){turn_left_indicator.STRING = "COMMA";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 74){turn_left_indicator.STRING = "PERIOD";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 75){turn_left_indicator.STRING = "SLASH";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 76){turn_left_indicator.STRING = "CONTROL";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 77){turn_left_indicator.STRING = "ALTERNATE";turn_left_indicator.VISIBLE = ON;} IF (user_key_turn_left == 78){turn_left_indicator.STRING = "SPACE";turn_left_indicator.VISIBLE = ON;} IF (user_key_look_up == 1){look_up_indicator.STRING = "A";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 2){look_up_indicator.STRING = "B";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 3){look_up_indicator.STRING = "C";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 4){look_up_indicator.STRING = "D";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 5){look_up_indicator.STRING = "E";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 6){look_up_indicator.STRING = "F";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 7){look_up_indicator.STRING = "G";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 8){look_up_indicator.STRING = "H";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 9){look_up_indicator.STRING = "I";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 10){look_up_indicator.STRING = "J";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 11){look_up_indicator.STRING = "K";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 12){look_up_indicator.STRING = "L";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 13){look_up_indicator.STRING = "M";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 14){look_up_indicator.STRING = "N";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 15){look_up_indicator.STRING = "O";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 16){look_up_indicator.STRING = "P";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 17){look_up_indicator.STRING = "Q";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 18){look_up_indicator.STRING = "R";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 19){look_up_indicator.STRING = "S";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 20){look_up_indicator.STRING = "T";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 21){look_up_indicator.STRING = "U";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 22){look_up_indicator.STRING = "V";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 23){look_up_indicator.STRING = "W";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 24){look_up_indicator.STRING = "X";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 25){look_up_indicator.STRING = "Y";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 26){look_up_indicator.STRING = "Z";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 27){look_up_indicator.STRING = "UP ARROW";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 28){look_up_indicator.STRING = "DOWN ARROW";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 29){look_up_indicator.STRING = "RIGHT ARROW";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 30){look_up_indicator.STRING = "LEFT ARROW";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 31){look_up_indicator.STRING = "1";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 32){look_up_indicator.STRING = "2";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 33){look_up_indicator.STRING = "3";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 34){look_up_indicator.STRING = "4";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 35){look_up_indicator.STRING = "5";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 36){look_up_indicator.STRING = "6";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 37){look_up_indicator.STRING = "7";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 38){look_up_indicator.STRING = "8";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 39){look_up_indicator.STRING = "9";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 40){look_up_indicator.STRING = "0";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 41){look_up_indicator.STRING = "F1";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 42){look_up_indicator.STRING = "F2";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 43){look_up_indicator.STRING = "F3";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 44){look_up_indicator.STRING = "F4";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 45){look_up_indicator.STRING = "F5";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 46){look_up_indicator.STRING = "F6";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 47){look_up_indicator.STRING = "F7";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 48){look_up_indicator.STRING = "F8";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 49){look_up_indicator.STRING = "F9";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 50){look_up_indicator.STRING = "F10";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 51){look_up_indicator.STRING = "F11";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 52){look_up_indicator.STRING = "F12";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 53){look_up_indicator.STRING = "ESCAPE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 54){look_up_indicator.STRING = "PAUSE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 55){look_up_indicator.STRING = "TILDE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 56){look_up_indicator.STRING = "MINUS";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 57){look_up_indicator.STRING = "EQUALS";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 58){look_up_indicator.STRING = "BACKSLASH";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 59){look_up_indicator.STRING = "BACKSPACE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 60){look_up_indicator.STRING = "INSERT";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 61){look_up_indicator.STRING = "HOME";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 62){look_up_indicator.STRING = "PAGE UP";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 63){look_up_indicator.STRING = "DELETE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 64){look_up_indicator.STRING = "END";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 65){look_up_indicator.STRING = "PAGE DOWN";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 66){look_up_indicator.STRING = "TAB";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 67){look_up_indicator.STRING = "LEFT BRACKET";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 68){look_up_indicator.STRING = "RIGHT BRACKET";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 69){look_up_indicator.STRING = "SEMICOLON";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 70){look_up_indicator.STRING = "APOSTROPHE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 71){look_up_indicator.STRING = "ENTER";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 72){look_up_indicator.STRING = "SHIFT";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 73){look_up_indicator.STRING = "COMMA";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 74){look_up_indicator.STRING = "PERIOD";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 75){look_up_indicator.STRING = "SLASH";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 76){look_up_indicator.STRING = "CONTROL";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 77){look_up_indicator.STRING = "ALTERNATE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_up == 78){look_up_indicator.STRING = "SPACE";look_up_indicator.VISIBLE = ON;} IF (user_key_look_down == 1){look_down_indicator.STRING = "A";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 2){look_down_indicator.STRING = "B";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 3){look_down_indicator.STRING = "C";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 4){look_down_indicator.STRING = "D";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 5){look_down_indicator.STRING = "E";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 6){look_down_indicator.STRING = "F";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 7){look_down_indicator.STRING = "G";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 8){look_down_indicator.STRING = "H";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 9){look_down_indicator.STRING = "I";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 10){look_down_indicator.STRING = "J";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 11){look_down_indicator.STRING = "K";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 12){look_down_indicator.STRING = "L";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 13){look_down_indicator.STRING = "M";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 14){look_down_indicator.STRING = "N";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 15){look_down_indicator.STRING = "O";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 16){look_down_indicator.STRING = "P";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 17){look_down_indicator.STRING = "Q";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 18){look_down_indicator.STRING = "R";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 19){look_down_indicator.STRING = "S";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 20){look_down_indicator.STRING = "T";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 21){look_down_indicator.STRING = "U";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 22){look_down_indicator.STRING = "V";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 23){look_down_indicator.STRING = "W";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 24){look_down_indicator.STRING = "X";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 25){look_down_indicator.STRING = "Y";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 26){look_down_indicator.STRING = "Z";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 27){look_down_indicator.STRING = "UP ARROW";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 28){look_down_indicator.STRING = "DOWN ARROW";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 29){look_down_indicator.STRING = "RIGHT ARROW";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 30){look_down_indicator.STRING = "LEFT ARROW";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 31){look_down_indicator.STRING = "1";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 32){look_down_indicator.STRING = "2";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 33){look_down_indicator.STRING = "3";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 34){look_down_indicator.STRING = "4";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 35){look_down_indicator.STRING = "5";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 36){look_down_indicator.STRING = "6";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 37){look_down_indicator.STRING = "7";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 38){look_down_indicator.STRING = "8";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 39){look_down_indicator.STRING = "9";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 40){look_down_indicator.STRING = "0";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 41){look_down_indicator.STRING = "F1";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 42){look_down_indicator.STRING = "F2";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 43){look_down_indicator.STRING = "F3";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 44){look_down_indicator.STRING = "F4";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 45){look_down_indicator.STRING = "F5";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 46){look_down_indicator.STRING = "F6";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 47){look_down_indicator.STRING = "F7";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 48){look_down_indicator.STRING = "F8";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 49){look_down_indicator.STRING = "F9";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 50){look_down_indicator.STRING = "F10";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 51){look_down_indicator.STRING = "F11";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 52){look_down_indicator.STRING = "F12";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 53){look_down_indicator.STRING = "ESCAPE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 54){look_down_indicator.STRING = "PAUSE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 55){look_down_indicator.STRING = "TILDE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 56){look_down_indicator.STRING = "MINUS";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 57){look_down_indicator.STRING = "EQUALS";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 58){look_down_indicator.STRING = "BACKSLASH";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 59){look_down_indicator.STRING = "BACKSPACE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 60){look_down_indicator.STRING = "INSERT";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 61){look_down_indicator.STRING = "HOME";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 62){look_down_indicator.STRING = "PAGE UP";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 63){look_down_indicator.STRING = "DELETE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 64){look_down_indicator.STRING = "END";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 65){look_down_indicator.STRING = "PAGE DOWN";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 66){look_down_indicator.STRING = "TAB";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 67){look_down_indicator.STRING = "LEFT BRACKET";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 68){look_down_indicator.STRING = "RIGHT BRACKET";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 69){look_down_indicator.STRING = "SEMICOLON";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 70){look_down_indicator.STRING = "APOSTROPHE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 71){look_down_indicator.STRING = "ENTER";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 72){look_down_indicator.STRING = "SHIFT";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 73){look_down_indicator.STRING = "COMMA";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 74){look_down_indicator.STRING = "PERIOD";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 75){look_down_indicator.STRING = "SLASH";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 76){look_down_indicator.STRING = "CONTROL";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 77){look_down_indicator.STRING = "ALTERNATE";look_down_indicator.VISIBLE = ON;} IF (user_key_look_down == 78){look_down_indicator.STRING = "SPACE";look_down_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 1){strafe_right_indicator.STRING = "A";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 2){strafe_right_indicator.STRING = "B";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 3){strafe_right_indicator.STRING = "C";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 4){strafe_right_indicator.STRING = "D";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 5){strafe_right_indicator.STRING = "E";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 6){strafe_right_indicator.STRING = "F";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 7){strafe_right_indicator.STRING = "G";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 8){strafe_right_indicator.STRING = "H";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 9){strafe_right_indicator.STRING = "I";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 10){strafe_right_indicator.STRING = "J";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 11){strafe_right_indicator.STRING = "K";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 12){strafe_right_indicator.STRING = "L";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 13){strafe_right_indicator.STRING = "M";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 14){strafe_right_indicator.STRING = "N";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 15){strafe_right_indicator.STRING = "O";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 16){strafe_right_indicator.STRING = "P";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 17){strafe_right_indicator.STRING = "Q";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 18){strafe_right_indicator.STRING = "R";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 19){strafe_right_indicator.STRING = "S";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 20){strafe_right_indicator.STRING = "T";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 21){strafe_right_indicator.STRING = "U";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 22){strafe_right_indicator.STRING = "V";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 23){strafe_right_indicator.STRING = "W";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 24){strafe_right_indicator.STRING = "X";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 25){strafe_right_indicator.STRING = "Y";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 26){strafe_right_indicator.STRING = "Z";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 27){strafe_right_indicator.STRING = "UP ARROW";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 28){strafe_right_indicator.STRING = "DOWN ARROW";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 29){strafe_right_indicator.STRING = "RIGHT ARROW";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 30){strafe_right_indicator.STRING = "LEFT ARROW";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 31){strafe_right_indicator.STRING = "1";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 32){strafe_right_indicator.STRING = "2";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 33){strafe_right_indicator.STRING = "3";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 34){strafe_right_indicator.STRING = "4";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 35){strafe_right_indicator.STRING = "5";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 36){strafe_right_indicator.STRING = "6";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 37){strafe_right_indicator.STRING = "7";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 38){strafe_right_indicator.STRING = "8";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 39){strafe_right_indicator.STRING = "9";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 40){strafe_right_indicator.STRING = "0";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 41){strafe_right_indicator.STRING = "F1";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 42){strafe_right_indicator.STRING = "F2";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 43){strafe_right_indicator.STRING = "F3";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 44){strafe_right_indicator.STRING = "F4";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 45){strafe_right_indicator.STRING = "F5";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 46){strafe_right_indicator.STRING = "F6";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 47){strafe_right_indicator.STRING = "F7";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 48){strafe_right_indicator.STRING = "F8";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 49){strafe_right_indicator.STRING = "F9";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 50){strafe_right_indicator.STRING = "F10";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 51){strafe_right_indicator.STRING = "F11";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 52){strafe_right_indicator.STRING = "F12";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 53){strafe_right_indicator.STRING = "ESCAPE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 54){strafe_right_indicator.STRING = "PAUSE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 55){strafe_right_indicator.STRING = "TILDE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 56){strafe_right_indicator.STRING = "MINUS";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 57){strafe_right_indicator.STRING = "EQUALS";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 58){strafe_right_indicator.STRING = "BACKSLASH";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 59){strafe_right_indicator.STRING = "BACKSPACE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 60){strafe_right_indicator.STRING = "INSERT";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 61){strafe_right_indicator.STRING = "HOME";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 62){strafe_right_indicator.STRING = "PAGE UP";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 63){strafe_right_indicator.STRING = "DELETE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 64){strafe_right_indicator.STRING = "END";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 65){strafe_right_indicator.STRING = "PAGE DOWN";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 66){strafe_right_indicator.STRING = "TAB";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 67){strafe_right_indicator.STRING = "LEFT BRACKET";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 68){strafe_right_indicator.STRING = "RIGHT BRACKET";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 69){strafe_right_indicator.STRING = "SEMICOLON";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 70){strafe_right_indicator.STRING = "APOSTROPHE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 71){strafe_right_indicator.STRING = "ENTER";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 72){strafe_right_indicator.STRING = "SHIFT";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 73){strafe_right_indicator.STRING = "COMMA";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 74){strafe_right_indicator.STRING = "PERIOD";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 75){strafe_right_indicator.STRING = "SLASH";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 76){strafe_right_indicator.STRING = "CONTROL";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 77){strafe_right_indicator.STRING = "ALTERNATE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_right == 78){strafe_right_indicator.STRING = "SPACE";strafe_right_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 1){strafe_left_indicator.STRING = "A";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 2){strafe_left_indicator.STRING = "B";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 3){strafe_left_indicator.STRING = "C";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 4){strafe_left_indicator.STRING = "D";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 5){strafe_left_indicator.STRING = "E";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 6){strafe_left_indicator.STRING = "F";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 7){strafe_left_indicator.STRING = "G";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 8){strafe_left_indicator.STRING = "H";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 9){strafe_left_indicator.STRING = "I";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 10){strafe_left_indicator.STRING = "J";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 11){strafe_left_indicator.STRING = "K";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 12){strafe_left_indicator.STRING = "L";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 13){strafe_left_indicator.STRING = "M";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 14){strafe_left_indicator.STRING = "N";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 15){strafe_left_indicator.STRING = "O";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 16){strafe_left_indicator.STRING = "P";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 17){strafe_left_indicator.STRING = "Q";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 18){strafe_left_indicator.STRING = "R";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 19){strafe_left_indicator.STRING = "S";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 20){strafe_left_indicator.STRING = "T";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 21){strafe_left_indicator.STRING = "U";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 22){strafe_left_indicator.STRING = "V";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 23){strafe_left_indicator.STRING = "W";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 24){strafe_left_indicator.STRING = "X";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 25){strafe_left_indicator.STRING = "Y";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 26){strafe_left_indicator.STRING = "Z";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 27){strafe_left_indicator.STRING = "UP ARROW";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 28){strafe_left_indicator.STRING = "DOWN ARROW";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 29){strafe_left_indicator.STRING = "RIGHT ARROW";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 30){strafe_left_indicator.STRING = "LEFT ARROW";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 31){strafe_left_indicator.STRING = "1";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 32){strafe_left_indicator.STRING = "2";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 33){strafe_left_indicator.STRING = "3";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 34){strafe_left_indicator.STRING = "4";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 35){strafe_left_indicator.STRING = "5";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 36){strafe_left_indicator.STRING = "6";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 37){strafe_left_indicator.STRING = "7";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 38){strafe_left_indicator.STRING = "8";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 39){strafe_left_indicator.STRING = "9";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 40){strafe_left_indicator.STRING = "0";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 41){strafe_left_indicator.STRING = "F1";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 42){strafe_left_indicator.STRING = "F2";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 43){strafe_left_indicator.STRING = "F3";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 44){strafe_left_indicator.STRING = "F4";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 45){strafe_left_indicator.STRING = "F5";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 46){strafe_left_indicator.STRING = "F6";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 47){strafe_left_indicator.STRING = "F7";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 48){strafe_left_indicator.STRING = "F8";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 49){strafe_left_indicator.STRING = "F9";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 50){strafe_left_indicator.STRING = "F10";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 51){strafe_left_indicator.STRING = "F11";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 52){strafe_left_indicator.STRING = "F12";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 53){strafe_left_indicator.STRING = "ESCAPE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 54){strafe_left_indicator.STRING = "PAUSE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 55){strafe_left_indicator.STRING = "TILDE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 56){strafe_left_indicator.STRING = "MINUS";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 57){strafe_left_indicator.STRING = "EQUALS";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 58){strafe_left_indicator.STRING = "BACKSLASH";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 59){strafe_left_indicator.STRING = "BACKSPACE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 60){strafe_left_indicator.STRING = "INSERT";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 61){strafe_left_indicator.STRING = "HOME";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 62){strafe_left_indicator.STRING = "PAGE UP";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 63){strafe_left_indicator.STRING = "DELETE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 64){strafe_left_indicator.STRING = "END";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 65){strafe_left_indicator.STRING = "PAGE DOWN";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 66){strafe_left_indicator.STRING = "TAB";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 67){strafe_left_indicator.STRING = "LEFT BRACKET";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 68){strafe_left_indicator.STRING = "RIGHT BRACKET";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 69){strafe_left_indicator.STRING = "SEMICOLON";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 70){strafe_left_indicator.STRING = "APOSTROPHE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 71){strafe_left_indicator.STRING = "ENTER";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 72){strafe_left_indicator.STRING = "SHIFT";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 73){strafe_left_indicator.STRING = "COMMA";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 74){strafe_left_indicator.STRING = "PERIOD";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 75){strafe_left_indicator.STRING = "SLASH";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 76){strafe_left_indicator.STRING = "CONTROL";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 77){strafe_left_indicator.STRING = "ALTERNATE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_strafe_left == 78){strafe_left_indicator.STRING = "SPACE";strafe_left_indicator.VISIBLE = ON;} IF (user_key_run == 1){run_indicator.STRING = "A";run_indicator.VISIBLE = ON;} IF (user_key_run == 2){run_indicator.STRING = "B";run_indicator.VISIBLE = ON;} IF (user_key_run == 3){run_indicator.STRING = "C";run_indicator.VISIBLE = ON;} IF (user_key_run == 4){run_indicator.STRING = "D";run_indicator.VISIBLE = ON;} IF (user_key_run == 5){run_indicator.STRING = "E";run_indicator.VISIBLE = ON;} IF (user_key_run == 6){run_indicator.STRING = "F";run_indicator.VISIBLE = ON;} IF (user_key_run == 7){run_indicator.STRING = "G";run_indicator.VISIBLE = ON;} IF (user_key_run == 8){run_indicator.STRING = "H";run_indicator.VISIBLE = ON;} IF (user_key_run == 9){run_indicator.STRING = "I";run_indicator.VISIBLE = ON;} IF (user_key_run == 10){run_indicator.STRING = "J";run_indicator.VISIBLE = ON;} IF (user_key_run == 11){run_indicator.STRING = "K";run_indicator.VISIBLE = ON;} IF (user_key_run == 12){run_indicator.STRING = "L";run_indicator.VISIBLE = ON;} IF (user_key_run == 13){run_indicator.STRING = "M";run_indicator.VISIBLE = ON;} IF (user_key_run == 14){run_indicator.STRING = "N";run_indicator.VISIBLE = ON;} IF (user_key_run == 15){run_indicator.STRING = "O";run_indicator.VISIBLE = ON;} IF (user_key_run == 16){run_indicator.STRING = "P";run_indicator.VISIBLE = ON;} IF (user_key_run == 17){run_indicator.STRING = "Q";run_indicator.VISIBLE = ON;} IF (user_key_run == 18){run_indicator.STRING = "R";run_indicator.VISIBLE = ON;} IF (user_key_run == 19){run_indicator.STRING = "S";run_indicator.VISIBLE = ON;} IF (user_key_run == 20){run_indicator.STRING = "T";run_indicator.VISIBLE = ON;} IF (user_key_run == 21){run_indicator.STRING = "U";run_indicator.VISIBLE = ON;} IF (user_key_run == 22){run_indicator.STRING = "V";run_indicator.VISIBLE = ON;} IF (user_key_run == 23){run_indicator.STRING = "W";run_indicator.VISIBLE = ON;} IF (user_key_run == 24){run_indicator.STRING = "X";run_indicator.VISIBLE = ON;} IF (user_key_run == 25){run_indicator.STRING = "Y";run_indicator.VISIBLE = ON;} IF (user_key_run == 26){run_indicator.STRING = "Z";run_indicator.VISIBLE = ON;} IF (user_key_run == 27){run_indicator.STRING = "UP ARROW";run_indicator.VISIBLE = ON;} IF (user_key_run == 28){run_indicator.STRING = "DOWN ARROW";run_indicator.VISIBLE = ON;} IF (user_key_run == 29){run_indicator.STRING = "RIGHT ARROW";run_indicator.VISIBLE = ON;} IF (user_key_run == 30){run_indicator.STRING = "LEFT ARROW";run_indicator.VISIBLE = ON;} IF (user_key_run == 31){run_indicator.STRING = "1";run_indicator.VISIBLE = ON;} IF (user_key_run == 32){run_indicator.STRING = "2";run_indicator.VISIBLE = ON;} IF (user_key_run == 33){run_indicator.STRING = "3";run_indicator.VISIBLE = ON;} IF (user_key_run == 34){run_indicator.STRING = "4";run_indicator.VISIBLE = ON;} IF (user_key_run == 35){run_indicator.STRING = "5";run_indicator.VISIBLE = ON;} IF (user_key_run == 36){run_indicator.STRING = "6";run_indicator.VISIBLE = ON;} IF (user_key_run == 37){run_indicator.STRING = "7";run_indicator.VISIBLE = ON;} IF (user_key_run == 38){run_indicator.STRING = "8";run_indicator.VISIBLE = ON;} IF (user_key_run == 39){run_indicator.STRING = "9";run_indicator.VISIBLE = ON;} IF (user_key_run == 40){run_indicator.STRING = "0";run_indicator.VISIBLE = ON;} IF (user_key_run == 41){run_indicator.STRING = "F1";run_indicator.VISIBLE = ON;} IF (user_key_run == 42){run_indicator.STRING = "F2";run_indicator.VISIBLE = ON;} IF (user_key_run == 43){run_indicator.STRING = "F3";run_indicator.VISIBLE = ON;} IF (user_key_run == 44){run_indicator.STRING = "F4";run_indicator.VISIBLE = ON;} IF (user_key_run == 45){run_indicator.STRING = "F5";run_indicator.VISIBLE = ON;} IF (user_key_run == 46){run_indicator.STRING = "F6";run_indicator.VISIBLE = ON;} IF (user_key_run == 47){run_indicator.STRING = "F7";run_indicator.VISIBLE = ON;} IF (user_key_run == 48){run_indicator.STRING = "F8";run_indicator.VISIBLE = ON;} IF (user_key_run == 49){run_indicator.STRING = "F9";run_indicator.VISIBLE = ON;} IF (user_key_run == 50){run_indicator.STRING = "F10";run_indicator.VISIBLE = ON;} IF (user_key_run == 51){run_indicator.STRING = "F11";run_indicator.VISIBLE = ON;} IF (user_key_run == 52){run_indicator.STRING = "F12";run_indicator.VISIBLE = ON;} IF (user_key_run == 53){run_indicator.STRING = "ESCAPE";run_indicator.VISIBLE = ON;} IF (user_key_run == 54){run_indicator.STRING = "PAUSE";run_indicator.VISIBLE = ON;} IF (user_key_run == 55){run_indicator.STRING = "TILDE";run_indicator.VISIBLE = ON;} IF (user_key_run == 56){run_indicator.STRING = "MINUS";run_indicator.VISIBLE = ON;} IF (user_key_run == 57){run_indicator.STRING = "EQUALS";run_indicator.VISIBLE = ON;} IF (user_key_run == 58){run_indicator.STRING = "BACKSLASH";run_indicator.VISIBLE = ON;} IF (user_key_run == 59){run_indicator.STRING = "BACKSPACE";run_indicator.VISIBLE = ON;} IF (user_key_run == 60){run_indicator.STRING = "INSERT";run_indicator.VISIBLE = ON;} IF (user_key_run == 61){run_indicator.STRING = "HOME";run_indicator.VISIBLE = ON;} IF (user_key_run == 62){run_indicator.STRING = "PAGE UP";run_indicator.VISIBLE = ON;} IF (user_key_run == 63){run_indicator.STRING = "DELETE";run_indicator.VISIBLE = ON;} IF (user_key_run == 64){run_indicator.STRING = "END";run_indicator.VISIBLE = ON;} IF (user_key_run == 65){run_indicator.STRING = "PAGE DOWN";run_indicator.VISIBLE = ON;} IF (user_key_run == 66){run_indicator.STRING = "TAB";run_indicator.VISIBLE = ON;} IF (user_key_run == 67){run_indicator.STRING = "LEFT BRACKET";run_indicator.VISIBLE = ON;} IF (user_key_run == 68){run_indicator.STRING = "RIGHT BRACKET";run_indicator.VISIBLE = ON;} IF (user_key_run == 69){run_indicator.STRING = "SEMICOLON";run_indicator.VISIBLE = ON;} IF (user_key_run == 70){run_indicator.STRING = "APOSTROPHE";run_indicator.VISIBLE = ON;} IF (user_key_run == 71){run_indicator.STRING = "ENTER";run_indicator.VISIBLE = ON;} IF (user_key_run == 72){run_indicator.STRING = "SHIFT";run_indicator.VISIBLE = ON;} IF (user_key_run == 73){run_indicator.STRING = "COMMA";run_indicator.VISIBLE = ON;} IF (user_key_run == 74){run_indicator.STRING = "PERIOD";run_indicator.VISIBLE = ON;} IF (user_key_run == 75){run_indicator.STRING = "SLASH";run_indicator.VISIBLE = ON;} IF (user_key_run == 76){run_indicator.STRING = "CONTROL";run_indicator.VISIBLE = ON;} IF (user_key_run == 77){run_indicator.STRING = "ALTERNATE";run_indicator.VISIBLE = ON;} IF (user_key_run == 78){run_indicator.STRING = "SPACE";run_indicator.VISIBLE = ON;} IF (user_key_jump == 1){jump_indicator.STRING = "A";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 2){jump_indicator.STRING = "B";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 3){jump_indicator.STRING = "C";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 4){jump_indicator.STRING = "D";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 5){jump_indicator.STRING = "E";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 6){jump_indicator.STRING = "F";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 7){jump_indicator.STRING = "G";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 8){jump_indicator.STRING = "H";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 9){jump_indicator.STRING = "I";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 10){jump_indicator.STRING = "J";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 11){jump_indicator.STRING = "K";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 12){jump_indicator.STRING = "L";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 13){jump_indicator.STRING = "M";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 14){jump_indicator.STRING = "N";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 15){jump_indicator.STRING = "O";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 16){jump_indicator.STRING = "P";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 17){jump_indicator.STRING = "Q";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 18){jump_indicator.STRING = "R";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 19){jump_indicator.STRING = "S";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 20){jump_indicator.STRING = "T";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 21){jump_indicator.STRING = "U";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 22){jump_indicator.STRING = "V";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 23){jump_indicator.STRING = "W";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 24){jump_indicator.STRING = "X";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 25){jump_indicator.STRING = "Y";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 26){jump_indicator.STRING = "Z";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 27){jump_indicator.STRING = "UP ARROW";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 28){jump_indicator.STRING = "DOWN ARROW";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 29){jump_indicator.STRING = "RIGHT ARROW";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 30){jump_indicator.STRING = "LEFT ARROW";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 31){jump_indicator.STRING = "1";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 32){jump_indicator.STRING = "2";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 33){jump_indicator.STRING = "3";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 34){jump_indicator.STRING = "4";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 35){jump_indicator.STRING = "5";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 36){jump_indicator.STRING = "6";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 37){jump_indicator.STRING = "7";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 38){jump_indicator.STRING = "8";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 39){jump_indicator.STRING = "9";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 40){jump_indicator.STRING = "0";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 41){jump_indicator.STRING = "F1";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 42){jump_indicator.STRING = "F2";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 43){jump_indicator.STRING = "F3";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 44){jump_indicator.STRING = "F4";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 45){jump_indicator.STRING = "F5";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 46){jump_indicator.STRING = "F6";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 47){jump_indicator.STRING = "F7";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 48){jump_indicator.STRING = "F8";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 49){jump_indicator.STRING = "F9";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 50){jump_indicator.STRING = "F10";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 51){jump_indicator.STRING = "F11";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 52){jump_indicator.STRING = "F12";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 53){jump_indicator.STRING = "ESCAPE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 54){jump_indicator.STRING = "PAUSE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 55){jump_indicator.STRING = "TILDE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 56){jump_indicator.STRING = "MINUS";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 57){jump_indicator.STRING = "EQUALS";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 58){jump_indicator.STRING = "BACKSLASH";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 59){jump_indicator.STRING = "BACKSPACE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 60){jump_indicator.STRING = "INSERT";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 61){jump_indicator.STRING = "HOME";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 62){jump_indicator.STRING = "PAGE UP";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 63){jump_indicator.STRING = "DELETE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 64){jump_indicator.STRING = "END";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 65){jump_indicator.STRING = "PAGE DOWN";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 66){jump_indicator.STRING = "TAB";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 67){jump_indicator.STRING = "LEFT BRACKET";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 68){jump_indicator.STRING = "RIGHT BRACKET";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 69){jump_indicator.STRING = "SEMICOLON";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 70){jump_indicator.STRING = "APOSTROPHE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 71){jump_indicator.STRING = "ENTER";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 72){jump_indicator.STRING = "SHIFT";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 73){jump_indicator.STRING = "COMMA";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 74){jump_indicator.STRING = "PERIOD";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 75){jump_indicator.STRING = "SLASH";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 76){jump_indicator.STRING = "CONTROL";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 77){jump_indicator.STRING = "ALTERNATE";jump_indicator.VISIBLE = ON;} IF (user_key_jump == 78){jump_indicator.STRING = "SPACE";jump_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 1){use_weapon_indicator.STRING = "A";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 2){use_weapon_indicator.STRING = "B";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 3){use_weapon_indicator.STRING = "C";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 4){use_weapon_indicator.STRING = "D";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 5){use_weapon_indicator.STRING = "E";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 6){use_weapon_indicator.STRING = "F";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 7){use_weapon_indicator.STRING = "G";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 8){use_weapon_indicator.STRING = "H";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 9){use_weapon_indicator.STRING = "I";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 10){use_weapon_indicator.STRING = "J";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 11){use_weapon_indicator.STRING = "K";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 12){use_weapon_indicator.STRING = "L";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 13){use_weapon_indicator.STRING = "M";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 14){use_weapon_indicator.STRING = "N";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 15){use_weapon_indicator.STRING = "O";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 16){use_weapon_indicator.STRING = "P";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 17){use_weapon_indicator.STRING = "Q";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 18){use_weapon_indicator.STRING = "R";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 19){use_weapon_indicator.STRING = "S";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 20){use_weapon_indicator.STRING = "T";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 21){use_weapon_indicator.STRING = "U";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 22){use_weapon_indicator.STRING = "V";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 23){use_weapon_indicator.STRING = "W";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 24){use_weapon_indicator.STRING = "X";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 25){use_weapon_indicator.STRING = "Y";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 26){use_weapon_indicator.STRING = "Z";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 27){use_weapon_indicator.STRING = "UP ARROW";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 28){use_weapon_indicator.STRING = "DOWN ARROW";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 29){use_weapon_indicator.STRING = "RIGHT ARROW";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 30){use_weapon_indicator.STRING = "LEFT ARROW";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 31){use_weapon_indicator.STRING = "1";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 32){use_weapon_indicator.STRING = "2";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 33){use_weapon_indicator.STRING = "3";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 34){use_weapon_indicator.STRING = "4";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 35){use_weapon_indicator.STRING = "5";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 36){use_weapon_indicator.STRING = "6";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 37){use_weapon_indicator.STRING = "7";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 38){use_weapon_indicator.STRING = "8";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 39){use_weapon_indicator.STRING = "9";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 40){use_weapon_indicator.STRING = "0";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 41){use_weapon_indicator.STRING = "F1";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 42){use_weapon_indicator.STRING = "F2";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 43){use_weapon_indicator.STRING = "F3";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 44){use_weapon_indicator.STRING = "F4";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 45){use_weapon_indicator.STRING = "F5";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 46){use_weapon_indicator.STRING = "F6";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 47){use_weapon_indicator.STRING = "F7";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 48){use_weapon_indicator.STRING = "F8";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 49){use_weapon_indicator.STRING = "F9";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 50){use_weapon_indicator.STRING = "F10";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 51){use_weapon_indicator.STRING = "F11";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 52){use_weapon_indicator.STRING = "F12";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 53){use_weapon_indicator.STRING = "ESCAPE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 54){use_weapon_indicator.STRING = "PAUSE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 55){use_weapon_indicator.STRING = "TILDE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 56){use_weapon_indicator.STRING = "MINUS";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 57){use_weapon_indicator.STRING = "EQUALS";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 58){use_weapon_indicator.STRING = "BACKSLASH";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 59){use_weapon_indicator.STRING = "BACKSPACE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 60){use_weapon_indicator.STRING = "INSERT";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 61){use_weapon_indicator.STRING = "HOME";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 62){use_weapon_indicator.STRING = "PAGE UP";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 63){use_weapon_indicator.STRING = "DELETE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 64){use_weapon_indicator.STRING = "END";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 65){use_weapon_indicator.STRING = "PAGE DOWN";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 66){use_weapon_indicator.STRING = "TAB";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 67){use_weapon_indicator.STRING = "LEFT BRACKET";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 68){use_weapon_indicator.STRING = "RIGHT BRACKET";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 69){use_weapon_indicator.STRING = "SEMICOLON";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 70){use_weapon_indicator.STRING = "APOSTROPHE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 71){use_weapon_indicator.STRING = "ENTER";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 72){use_weapon_indicator.STRING = "SHIFT";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 73){use_weapon_indicator.STRING = "COMMA";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 74){use_weapon_indicator.STRING = "PERIOD";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 75){use_weapon_indicator.STRING = "SLASH";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 76){use_weapon_indicator.STRING = "CONTROL";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 77){use_weapon_indicator.STRING = "ALTERNATE";use_weapon_indicator.VISIBLE = ON;} IF (user_key_use_weapon == 78){use_weapon_indicator.STRING = "SPACE";use_weapon_indicator.VISIBLE = ON;} } // closes the control buttons FUNCTION key_panels_off () { forward_indicator.VISIBLE = OFF; reverse_indicator.VISIBLE = OFF; turn_right_indicator.VISIBLE = OFF; turn_left_indicator.VISIBLE = OFF; look_up_indicator.VISIBLE = OFF; look_down_indicator.VISIBLE = OFF; strafe_right_indicator.VISIBLE = OFF; strafe_left_indicator.VISIBLE = OFF; run_indicator.VISIBLE = OFF; jump_indicator.VISIBLE = OFF; use_weapon_indicator.VISIBLE = OFF; } // from the template movement.wdl function _player_intentions() { ///////////////////////////////////////////////////////////////////////////////// added this assignment code // forward key assignments IF (user_key_forward == 1){key_forward = Key_A;} IF (user_key_forward == 2){key_forward = Key_B;} IF (user_key_forward == 3){key_forward = Key_C;} IF (user_key_forward == 4){key_forward = Key_D;} IF (user_key_forward == 5){key_forward = Key_E;} IF (user_key_forward == 6){key_forward = Key_F;} IF (user_key_forward == 7){key_forward = Key_G;} IF (user_key_forward == 8){key_forward = Key_H;} IF (user_key_forward == 9){key_forward = Key_I;} IF (user_key_forward == 10){key_forward = Key_J;} IF (user_key_forward == 11){key_forward = Key_K;} IF (user_key_forward == 12){key_forward = Key_L;} IF (user_key_forward == 13){key_forward = Key_M;} IF (user_key_forward == 14){key_forward = Key_N;} IF (user_key_forward == 15){key_forward = Key_O;} IF (user_key_forward == 16){key_forward = Key_P;} IF (user_key_forward == 17){key_forward = Key_Q;} IF (user_key_forward == 18){key_forward = Key_R;} IF (user_key_forward == 19){key_forward = Key_S;} IF (user_key_forward == 20){key_forward = Key_T;} IF (user_key_forward == 21){key_forward = Key_U;} IF (user_key_forward == 22){key_forward = Key_V;} IF (user_key_forward == 23){key_forward = Key_W;} IF (user_key_forward == 24){key_forward = Key_X;} IF (user_key_forward == 25){key_forward = Key_Y;} IF (user_key_forward == 26){key_forward = Key_Z;} IF (user_key_forward == 27){key_forward = Key_CUU;} IF (user_key_forward == 28){key_forward = Key_CUD;} IF (user_key_forward == 29){key_forward = Key_CUR;} IF (user_key_forward == 30){key_forward = Key_CUL;} IF (user_key_forward == 31){key_forward = Key_1;} IF (user_key_forward == 32){key_forward = Key_2;} IF (user_key_forward == 33){key_forward = Key_3;} IF (user_key_forward == 34){key_forward = Key_4;} IF (user_key_forward == 35){key_forward = Key_5;} IF (user_key_forward == 36){key_forward = Key_6;} IF (user_key_forward == 37){key_forward = Key_7;} IF (user_key_forward == 38){key_forward = Key_8;} IF (user_key_forward == 39){key_forward = Key_9;} IF (user_key_forward == 40){key_forward = Key_0;} IF (user_key_forward == 41){key_forward = Key_F1;} IF (user_key_forward == 42){key_forward = Key_F2;} IF (user_key_forward == 43){key_forward = Key_F3;} IF (user_key_forward == 44){key_forward = Key_F4;} IF (user_key_forward == 45){key_forward = Key_F5;} IF (user_key_forward == 46){key_forward = Key_F6;} IF (user_key_forward == 47){key_forward = Key_F7;} IF (user_key_forward == 48){key_forward = Key_F8;} IF (user_key_forward == 49){key_forward = Key_F9;} IF (user_key_forward == 50){key_forward = Key_F10;} IF (user_key_forward == 51){key_forward = Key_F11;} IF (user_key_forward == 52){key_forward = Key_F12;} IF (user_key_forward == 53){key_forward = Key_ESC;} IF (user_key_forward == 54){key_forward = Key_PAUSE;} IF (user_key_forward == 55){key_forward = Key_GRAVE;} IF (user_key_forward == 56){key_forward = Key_MINUSC;} IF (user_key_forward == 57){key_forward = Key_EQUALS;} IF (user_key_forward == 58){key_forward = Key_BKSL;} IF (user_key_forward == 59){key_forward = Key_BKSP;} IF (user_key_forward == 60){key_forward = Key_INS;} IF (user_key_forward == 61){key_forward = Key_HOME;} IF (user_key_forward == 62){key_forward = Key_PGUP;} IF (user_key_forward == 63){key_forward = Key_DEL;} IF (user_key_forward == 64){key_forward = Key_END;} IF (user_key_forward == 65){key_forward = Key_PGDN;} IF (user_key_forward == 66){key_forward = Key_TAB;} IF (user_key_forward == 67){key_forward = Key_BRACKL;} IF (user_key_forward == 68){key_forward = Key_BRACKR;} IF (user_key_forward == 69){key_forward = Key_SEMIC;} IF (user_key_forward == 70){key_forward = Key_APOS;} IF (user_key_forward == 71){key_forward = Key_ENTER;} IF (user_key_forward == 72){key_forward = Key_SHIFT;} IF (user_key_forward == 73){key_forward = Key_CAL;} IF (user_key_forward == 74){key_forward = Key_CAR;} IF (user_key_forward == 75){key_forward = Key_SLASH;} IF (user_key_forward == 76){key_forward = Key_CTRL;} IF (user_key_forward == 77){key_forward = Key_ALT;} IF (user_key_forward == 78){key_forward = Key_SPACE;} // reverse key assignments IF (user_key_reverse == 1){key_reverse = Key_A;} IF (user_key_reverse == 2){key_reverse = Key_B;} IF (user_key_reverse == 3){key_reverse = Key_C;} IF (user_key_reverse == 4){key_reverse = Key_D;} IF (user_key_reverse == 5){key_reverse = Key_E;} IF (user_key_reverse == 6){key_reverse = Key_F;} IF (user_key_reverse == 7){key_reverse = Key_G;} IF (user_key_reverse == 8){key_reverse = Key_H;} IF (user_key_reverse == 9){key_reverse = Key_I;} IF (user_key_reverse == 10){key_reverse = Key_J;} IF (user_key_reverse == 11){key_reverse = Key_K;} IF (user_key_reverse == 12){key_reverse = Key_L;} IF (user_key_reverse == 13){key_reverse = Key_M;} IF (user_key_reverse == 14){key_reverse = Key_N;} IF (user_key_reverse == 15){key_reverse = Key_O;} IF (user_key_reverse == 16){key_reverse = Key_P;} IF (user_key_reverse == 17){key_reverse = Key_Q;} IF (user_key_reverse == 18){key_reverse = Key_R;} IF (user_key_reverse == 19){key_reverse = Key_S;} IF (user_key_reverse == 20){key_reverse = Key_T;} IF (user_key_reverse == 21){key_reverse = Key_U;} IF (user_key_reverse == 22){key_reverse = Key_V;} IF (user_key_reverse == 23){key_reverse = Key_W;} IF (user_key_reverse == 24){key_reverse = Key_X;} IF (user_key_reverse == 25){key_reverse = Key_Y;} IF (user_key_reverse == 26){key_reverse = Key_Z;} IF (user_key_reverse == 27){key_reverse = Key_CUU;} IF (user_key_reverse == 28){key_reverse = Key_CUD;} IF (user_key_reverse == 29){key_reverse = Key_CUR;} IF (user_key_reverse == 30){key_reverse = Key_CUL;} IF (user_key_reverse == 31){key_reverse = Key_1;} IF (user_key_reverse == 32){key_reverse = Key_2;} IF (user_key_reverse == 33){key_reverse = Key_3;} IF (user_key_reverse == 34){key_reverse = Key_4;} IF (user_key_reverse == 35){key_reverse = Key_5;} IF (user_key_reverse == 36){key_reverse = Key_6;} IF (user_key_reverse == 37){key_reverse = Key_7;} IF (user_key_reverse == 38){key_reverse = Key_8;} IF (user_key_reverse == 39){key_reverse = Key_9;} IF (user_key_reverse == 40){key_reverse = Key_0;} IF (user_key_reverse == 41){key_reverse = Key_F1;} IF (user_key_reverse == 42){key_reverse = Key_F2;} IF (user_key_reverse == 43){key_reverse = Key_F3;} IF (user_key_reverse == 44){key_reverse = Key_F4;} IF (user_key_reverse == 45){key_reverse = Key_F5;} IF (user_key_reverse == 46){key_reverse = Key_F6;} IF (user_key_reverse == 47){key_reverse = Key_F7;} IF (user_key_reverse == 48){key_reverse = Key_F8;} IF (user_key_reverse == 49){key_reverse = Key_F9;} IF (user_key_reverse == 50){key_reverse = Key_F10;} IF (user_key_reverse == 51){key_reverse = Key_F11;} IF (user_key_reverse == 52){key_reverse = Key_F12;} IF (user_key_reverse == 53){key_reverse = Key_ESC;} IF (user_key_reverse == 54){key_reverse = Key_PAUSE;} IF (user_key_reverse == 55){key_reverse = Key_GRAVE;} IF (user_key_reverse == 56){key_reverse = Key_MINUSC;} IF (user_key_reverse == 57){key_reverse = Key_EQUALS;} IF (user_key_reverse == 58){key_reverse = Key_BKSL;} IF (user_key_reverse == 59){key_reverse = Key_BKSP;} IF (user_key_reverse == 60){key_reverse = Key_INS;} IF (user_key_reverse == 61){key_reverse = Key_HOME;} IF (user_key_reverse == 62){key_reverse = Key_PGUP;} IF (user_key_reverse == 63){key_reverse = Key_DEL;} IF (user_key_reverse == 64){key_reverse = Key_END;} IF (user_key_reverse == 65){key_reverse = Key_PGDN;} IF (user_key_reverse == 66){key_reverse = Key_TAB;} IF (user_key_reverse == 67){key_reverse = Key_BRACKL;} IF (user_key_reverse == 68){key_reverse = Key_BRACKR;} IF (user_key_reverse == 69){key_reverse = Key_SEMIC;} IF (user_key_reverse == 70){key_reverse = Key_APOS;} IF (user_key_reverse == 71){key_reverse = Key_ENTER;} IF (user_key_reverse == 72){key_reverse = Key_SHIFT;} IF (user_key_reverse == 73){key_reverse = Key_CAL;} IF (user_key_reverse == 74){key_reverse = Key_CAR;} IF (user_key_reverse == 75){key_reverse = Key_SLASH;} IF (user_key_reverse == 76){key_reverse = Key_CTRL;} IF (user_key_reverse == 77){key_reverse = Key_ALT;} IF (user_key_reverse == 78){key_reverse = Key_SPACE;} // turn right key assignments IF (user_key_turn_right == 1){key_turn_right = Key_A;} IF (user_key_turn_right == 2){key_turn_right = Key_B;} IF (user_key_turn_right == 3){key_turn_right = Key_C;} IF (user_key_turn_right == 4){key_turn_right = Key_D;} IF (user_key_turn_right == 5){key_turn_right = Key_E;} IF (user_key_turn_right == 6){key_turn_right = Key_F;} IF (user_key_turn_right == 7){key_turn_right = Key_G;} IF (user_key_turn_right == 8){key_turn_right = Key_H;} IF (user_key_turn_right == 9){key_turn_right = Key_I;} IF (user_key_turn_right == 10){key_turn_right = Key_J;} IF (user_key_turn_right == 11){key_turn_right = Key_K;} IF (user_key_turn_right == 12){key_turn_right = Key_L;} IF (user_key_turn_right == 13){key_turn_right = Key_M;} IF (user_key_turn_right == 14){key_turn_right = Key_N;} IF (user_key_turn_right == 15){key_turn_right = Key_O;} IF (user_key_turn_right == 16){key_turn_right = Key_P;} IF (user_key_turn_right == 17){key_turn_right = Key_Q;} IF (user_key_turn_right == 18){key_turn_right = Key_R;} IF (user_key_turn_right == 19){key_turn_right = Key_S;} IF (user_key_turn_right == 20){key_turn_right = Key_T;} IF (user_key_turn_right == 21){key_turn_right = Key_U;} IF (user_key_turn_right == 22){key_turn_right = Key_V;} IF (user_key_turn_right == 23){key_turn_right = Key_W;} IF (user_key_turn_right == 24){key_turn_right = Key_X;} IF (user_key_turn_right == 25){key_turn_right = Key_Y;} IF (user_key_turn_right == 26){key_turn_right = Key_Z;} IF (user_key_turn_right == 27){key_turn_right = Key_CUU;} IF (user_key_turn_right == 28){key_turn_right = Key_CUD;} IF (user_key_turn_right == 29){key_turn_right = Key_CUR;} IF (user_key_turn_right == 30){key_turn_right = Key_CUL;} IF (user_key_turn_right == 31){key_turn_right = Key_1;} IF (user_key_turn_right == 32){key_turn_right = Key_2;} IF (user_key_turn_right == 33){key_turn_right = Key_3;} IF (user_key_turn_right == 34){key_turn_right = Key_4;} IF (user_key_turn_right == 35){key_turn_right = Key_5;} IF (user_key_turn_right == 36){key_turn_right = Key_6;} IF (user_key_turn_right == 37){key_turn_right = Key_7;} IF (user_key_turn_right == 38){key_turn_right = Key_8;} IF (user_key_turn_right == 39){key_turn_right = Key_9;} IF (user_key_turn_right == 40){key_turn_right = Key_0;} IF (user_key_turn_right == 41){key_turn_right = Key_F1;} IF (user_key_turn_right == 42){key_turn_right = Key_F2;} IF (user_key_turn_right == 43){key_turn_right = Key_F3;} IF (user_key_turn_right == 44){key_turn_right = Key_F4;} IF (user_key_turn_right == 45){key_turn_right = Key_F5;} IF (user_key_turn_right == 46){key_turn_right = Key_F6;} IF (user_key_turn_right == 47){key_turn_right = Key_F7;} IF (user_key_turn_right == 48){key_turn_right = Key_F8;} IF (user_key_turn_right == 49){key_turn_right = Key_F9;} IF (user_key_turn_right == 50){key_turn_right = Key_F10;} IF (user_key_turn_right == 51){key_turn_right = Key_F11;} IF (user_key_turn_right == 52){key_turn_right = Key_F12;} IF (user_key_turn_right == 53){key_turn_right = Key_ESC;} IF (user_key_turn_right == 54){key_turn_right = Key_PAUSE;} IF (user_key_turn_right == 55){key_turn_right = Key_GRAVE;} IF (user_key_turn_right == 56){key_turn_right = Key_MINUSC;} IF (user_key_turn_right == 57){key_turn_right = Key_EQUALS;} IF (user_key_turn_right == 58){key_turn_right = Key_BKSL;} IF (user_key_turn_right == 59){key_turn_right = Key_BKSP;} IF (user_key_turn_right == 60){key_turn_right = Key_INS;} IF (user_key_turn_right == 61){key_turn_right = Key_HOME;} IF (user_key_turn_right == 62){key_turn_right = Key_PGUP;} IF (user_key_turn_right == 63){key_turn_right = Key_DEL;} IF (user_key_turn_right == 64){key_turn_right = Key_END;} IF (user_key_turn_right == 65){key_turn_right = Key_PGDN;} IF (user_key_turn_right == 66){key_turn_right = Key_TAB;} IF (user_key_turn_right == 67){key_turn_right = Key_BRACKL;} IF (user_key_turn_right == 68){key_turn_right = Key_BRACKR;} IF (user_key_turn_right == 69){key_turn_right = Key_SEMIC;} IF (user_key_turn_right == 70){key_turn_right = Key_APOS;} IF (user_key_turn_right == 71){key_turn_right = Key_ENTER;} IF (user_key_turn_right == 72){key_turn_right = Key_SHIFT;} IF (user_key_turn_right == 73){key_turn_right = Key_CAL;} IF (user_key_turn_right == 74){key_turn_right = Key_CAR;} IF (user_key_turn_right == 75){key_turn_right = Key_SLASH;} IF (user_key_turn_right == 76){key_turn_right = Key_CTRL;} IF (user_key_turn_right == 77){key_turn_right = Key_ALT;} IF (user_key_turn_right == 78){key_turn_right = Key_SPACE;} // turn left key assignments IF (user_key_turn_left == 1){key_turn_left = Key_A;} IF (user_key_turn_left == 2){key_turn_left = Key_B;} IF (user_key_turn_left == 3){key_turn_left = Key_C;} IF (user_key_turn_left == 4){key_turn_left = Key_D;} IF (user_key_turn_left == 5){key_turn_left = Key_E;} IF (user_key_turn_left == 6){key_turn_left = Key_F;} IF (user_key_turn_left == 7){key_turn_left = Key_G;} IF (user_key_turn_left == 8){key_turn_left = Key_H;} IF (user_key_turn_left == 9){key_turn_left = Key_I;} IF (user_key_turn_left == 10){key_turn_left = Key_J;} IF (user_key_turn_left == 11){key_turn_left = Key_K;} IF (user_key_turn_left == 12){key_turn_left = Key_L;} IF (user_key_turn_left == 13){key_turn_left = Key_M;} IF (user_key_turn_left == 14){key_turn_left = Key_N;} IF (user_key_turn_left == 15){key_turn_left = Key_O;} IF (user_key_turn_left == 16){key_turn_left = Key_P;} IF (user_key_turn_left == 17){key_turn_left = Key_Q;} IF (user_key_turn_left == 18){key_turn_left = Key_R;} IF (user_key_turn_left == 19){key_turn_left = Key_S;} IF (user_key_turn_left == 20){key_turn_left = Key_T;} IF (user_key_turn_left == 21){key_turn_left = Key_U;} IF (user_key_turn_left == 22){key_turn_left = Key_V;} IF (user_key_turn_left == 23){key_turn_left = Key_W;} IF (user_key_turn_left == 24){key_turn_left = Key_X;} IF (user_key_turn_left == 25){key_turn_left = Key_Y;} IF (user_key_turn_left == 26){key_turn_left = Key_Z;} IF (user_key_turn_left == 27){key_turn_left = Key_CUU;} IF (user_key_turn_left == 28){key_turn_left = Key_CUD;} IF (user_key_turn_left == 29){key_turn_left = Key_CUR;} IF (user_key_turn_left == 30){key_turn_left = Key_CUL;} IF (user_key_turn_left == 31){key_turn_left = Key_1;} IF (user_key_turn_left == 32){key_turn_left = Key_2;} IF (user_key_turn_left == 33){key_turn_left = Key_3;} IF (user_key_turn_left == 34){key_turn_left = Key_4;} IF (user_key_turn_left == 35){key_turn_left = Key_5;} IF (user_key_turn_left == 36){key_turn_left = Key_6;} IF (user_key_turn_left == 37){key_turn_left = Key_7;} IF (user_key_turn_left == 38){key_turn_left = Key_8;} IF (user_key_turn_left == 39){key_turn_left = Key_9;} IF (user_key_turn_left == 40){key_turn_left = Key_0;} IF (user_key_turn_left == 41){key_turn_left = Key_F1;} IF (user_key_turn_left == 42){key_turn_left = Key_F2;} IF (user_key_turn_left == 43){key_turn_left = Key_F3;} IF (user_key_turn_left == 44){key_turn_left = Key_F4;} IF (user_key_turn_left == 45){key_turn_left = Key_F5;} IF (user_key_turn_left == 46){key_turn_left = Key_F6;} IF (user_key_turn_left == 47){key_turn_left = Key_F7;} IF (user_key_turn_left == 48){key_turn_left = Key_F8;} IF (user_key_turn_left == 49){key_turn_left = Key_F9;} IF (user_key_turn_left == 50){key_turn_left = Key_F10;} IF (user_key_turn_left == 51){key_turn_left = Key_F11;} IF (user_key_turn_left == 52){key_turn_left = Key_F12;} IF (user_key_turn_left == 53){key_turn_left = Key_ESC;} IF (user_key_turn_left == 54){key_turn_left = Key_PAUSE;} IF (user_key_turn_left == 55){key_turn_left = Key_GRAVE;} IF (user_key_turn_left == 56){key_turn_left = Key_MINUSC;} IF (user_key_turn_left == 57){key_turn_left = Key_EQUALS;} IF (user_key_turn_left == 58){key_turn_left = Key_BKSL;} IF (user_key_turn_left == 59){key_turn_left = Key_BKSP;} IF (user_key_turn_left == 60){key_turn_left = Key_INS;} IF (user_key_turn_left == 61){key_turn_left = Key_HOME;} IF (user_key_turn_left == 62){key_turn_left = Key_PGUP;} IF (user_key_turn_left == 63){key_turn_left = Key_DEL;} IF (user_key_turn_left == 64){key_turn_left = Key_END;} IF (user_key_turn_left == 65){key_turn_left = Key_PGDN;} IF (user_key_turn_left == 66){key_turn_left = Key_TAB;} IF (user_key_turn_left == 67){key_turn_left = Key_BRACKL;} IF (user_key_turn_left == 68){key_turn_left = Key_BRACKR;} IF (user_key_turn_left == 69){key_turn_left = Key_SEMIC;} IF (user_key_turn_left == 70){key_turn_left = Key_APOS;} IF (user_key_turn_left == 71){key_turn_left = Key_ENTER;} IF (user_key_turn_left == 72){key_turn_left = Key_SHIFT;} IF (user_key_turn_left == 73){key_turn_left = Key_CAL;} IF (user_key_turn_left == 74){key_turn_left = Key_CAR;} IF (user_key_turn_left == 75){key_turn_left = Key_SLASH;} IF (user_key_turn_left == 76){key_turn_left = Key_CTRL;} IF (user_key_turn_left == 77){key_turn_left = Key_ALT;} IF (user_key_turn_left == 78){key_turn_left = Key_SPACE;} // look up key assignments IF (user_key_look_up == 1){key_look_up = Key_A;} IF (user_key_look_up == 2){key_look_up = Key_B;} IF (user_key_look_up == 3){key_look_up = Key_C;} IF (user_key_look_up == 4){key_look_up = Key_D;} IF (user_key_look_up == 5){key_look_up = Key_E;} IF (user_key_look_up == 6){key_look_up = Key_F;} IF (user_key_look_up == 7){key_look_up = Key_G;} IF (user_key_look_up == 8){key_look_up = Key_H;} IF (user_key_look_up == 9){key_look_up = Key_I;} IF (user_key_look_up == 10){key_look_up = Key_J;} IF (user_key_look_up == 11){key_look_up = Key_K;} IF (user_key_look_up == 12){key_look_up = Key_L;} IF (user_key_look_up == 13){key_look_up = Key_M;} IF (user_key_look_up == 14){key_look_up = Key_N;} IF (user_key_look_up == 15){key_look_up = Key_O;} IF (user_key_look_up == 16){key_look_up = Key_P;} IF (user_key_look_up == 17){key_look_up = Key_Q;} IF (user_key_look_up == 18){key_look_up = Key_R;} IF (user_key_look_up == 19){key_look_up = Key_S;} IF (user_key_look_up == 20){key_look_up = Key_T;} IF (user_key_look_up == 21){key_look_up = Key_U;} IF (user_key_look_up == 22){key_look_up = Key_V;} IF (user_key_look_up == 23){key_look_up = Key_W;} IF (user_key_look_up == 24){key_look_up = Key_X;} IF (user_key_look_up == 25){key_look_up = Key_Y;} IF (user_key_look_up == 26){key_look_up = Key_Z;} IF (user_key_look_up == 27){key_look_up = Key_CUU;} IF (user_key_look_up == 28){key_look_up = Key_CUD;} IF (user_key_look_up == 29){key_look_up = Key_CUR;} IF (user_key_look_up == 30){key_look_up = Key_CUL;} IF (user_key_look_up == 31){key_look_up = Key_1;} IF (user_key_look_up == 32){key_look_up = Key_2;} IF (user_key_look_up == 33){key_look_up = Key_3;} IF (user_key_look_up == 34){key_look_up = Key_4;} IF (user_key_look_up == 35){key_look_up = Key_5;} IF (user_key_look_up == 36){key_look_up = Key_6;} IF (user_key_look_up == 37){key_look_up = Key_7;} IF (user_key_look_up == 38){key_look_up = Key_8;} IF (user_key_look_up == 39){key_look_up = Key_9;} IF (user_key_look_up == 40){key_look_up = Key_0;} IF (user_key_look_up == 41){key_look_up = Key_F1;} IF (user_key_look_up == 42){key_look_up = Key_F2;} IF (user_key_look_up == 43){key_look_up = Key_F3;} IF (user_key_look_up == 44){key_look_up = Key_F4;} IF (user_key_look_up == 45){key_look_up = Key_F5;} IF (user_key_look_up == 46){key_look_up = Key_F6;} IF (user_key_look_up == 47){key_look_up = Key_F7;} IF (user_key_look_up == 48){key_look_up = Key_F8;} IF (user_key_look_up == 49){key_look_up = Key_F9;} IF (user_key_look_up == 50){key_look_up = Key_F10;} IF (user_key_look_up == 51){key_look_up = Key_F11;} IF (user_key_look_up == 52){key_look_up = Key_F12;} IF (user_key_look_up == 53){key_look_up = Key_ESC;} IF (user_key_look_up == 54){key_look_up = Key_PAUSE;} IF (user_key_look_up == 55){key_look_up = Key_GRAVE;} IF (user_key_look_up == 56){key_look_up = Key_MINUSC;} IF (user_key_look_up == 57){key_look_up = Key_EQUALS;} IF (user_key_look_up == 58){key_look_up = Key_BKSL;} IF (user_key_look_up == 59){key_look_up = Key_BKSP;} IF (user_key_look_up == 60){key_look_up = Key_INS;} IF (user_key_look_up == 61){key_look_up = Key_HOME;} IF (user_key_look_up == 62){key_look_up = Key_PGUP;} IF (user_key_look_up == 63){key_look_up = Key_DEL;} IF (user_key_look_up == 64){key_look_up = Key_END;} IF (user_key_look_up == 65){key_look_up = Key_PGDN;} IF (user_key_look_up == 66){key_look_up = Key_TAB;} IF (user_key_look_up == 67){key_look_up = Key_BRACKL;} IF (user_key_look_up == 68){key_look_up = Key_BRACKR;} IF (user_key_look_up == 69){key_look_up = Key_SEMIC;} IF (user_key_look_up == 70){key_look_up = Key_APOS;} IF (user_key_look_up == 71){key_look_up = Key_ENTER;} IF (user_key_look_up == 72){key_look_up = Key_SHIFT;} IF (user_key_look_up == 73){key_look_up = Key_CAL;} IF (user_key_look_up == 74){key_look_up = Key_CAR;} IF (user_key_look_up == 75){key_look_up = Key_SLASH;} IF (user_key_look_up == 76){key_look_up = Key_CTRL;} IF (user_key_look_up == 77){key_look_up = Key_ALT;} IF (user_key_look_up == 78){key_look_up = Key_SPACE;} // look down key assignments IF (user_key_look_down == 1){key_look_down = Key_A;} IF (user_key_look_down == 2){key_look_down = Key_B;} IF (user_key_look_down == 3){key_look_down = Key_C;} IF (user_key_look_down == 4){key_look_down = Key_D;} IF (user_key_look_down == 5){key_look_down = Key_E;} IF (user_key_look_down == 6){key_look_down = Key_F;} IF (user_key_look_down == 7){key_look_down = Key_G;} IF (user_key_look_down == 8){key_look_down = Key_H;} IF (user_key_look_down == 9){key_look_down = Key_I;} IF (user_key_look_down == 10){key_look_down = Key_J;} IF (user_key_look_down == 11){key_look_down = Key_K;} IF (user_key_look_down == 12){key_look_down = Key_L;} IF (user_key_look_down == 13){key_look_down = Key_M;} IF (user_key_look_down == 14){key_look_down = Key_N;} IF (user_key_look_down == 15){key_look_down = Key_O;} IF (user_key_look_down == 16){key_look_down = Key_P;} IF (user_key_look_down == 17){key_look_down = Key_Q;} IF (user_key_look_down == 18){key_look_down = Key_R;} IF (user_key_look_down == 19){key_look_down = Key_S;} IF (user_key_look_down == 20){key_look_down = Key_T;} IF (user_key_look_down == 21){key_look_down = Key_U;} IF (user_key_look_down == 22){key_look_down = Key_V;} IF (user_key_look_down == 23){key_look_down = Key_W;} IF (user_key_look_down == 24){key_look_down = Key_X;} IF (user_key_look_down == 25){key_look_down = Key_Y;} IF (user_key_look_down == 26){key_look_down = Key_Z;} IF (user_key_look_down == 27){key_look_down = Key_CUU;} IF (user_key_look_down == 28){key_look_down = Key_CUD;} IF (user_key_look_down == 29){key_look_down = Key_CUR;} IF (user_key_look_down == 30){key_look_down = Key_CUL;} IF (user_key_look_down == 31){key_look_down = Key_1;} IF (user_key_look_down == 32){key_look_down = Key_2;} IF (user_key_look_down == 33){key_look_down = Key_3;} IF (user_key_look_down == 34){key_look_down = Key_4;} IF (user_key_look_down == 35){key_look_down = Key_5;} IF (user_key_look_down == 36){key_look_down = Key_6;} IF (user_key_look_down == 37){key_look_down = Key_7;} IF (user_key_look_down == 38){key_look_down = Key_8;} IF (user_key_look_down == 39){key_look_down = Key_9;} IF (user_key_look_down == 40){key_look_down = Key_0;} IF (user_key_look_down == 41){key_look_down = Key_F1;} IF (user_key_look_down == 42){key_look_down = Key_F2;} IF (user_key_look_down == 43){key_look_down = Key_F3;} IF (user_key_look_down == 44){key_look_down = Key_F4;} IF (user_key_look_down == 45){key_look_down = Key_F5;} IF (user_key_look_down == 46){key_look_down = Key_F6;} IF (user_key_look_down == 47){key_look_down = Key_F7;} IF (user_key_look_down == 48){key_look_down = Key_F8;} IF (user_key_look_down == 49){key_look_down = Key_F9;} IF (user_key_look_down == 50){key_look_down = Key_F10;} IF (user_key_look_down == 51){key_look_down = Key_F11;} IF (user_key_look_down == 52){key_look_down = Key_F12;} IF (user_key_look_down == 53){key_look_down = Key_ESC;} IF (user_key_look_down == 54){key_look_down = Key_PAUSE;} IF (user_key_look_down == 55){key_look_down = Key_GRAVE;} IF (user_key_look_down == 56){key_look_down = Key_MINUSC;} IF (user_key_look_down == 57){key_look_down = Key_EQUALS;} IF (user_key_look_down == 58){key_look_down = Key_BKSL;} IF (user_key_look_down == 59){key_look_down = Key_BKSP;} IF (user_key_look_down == 60){key_look_down = Key_INS;} IF (user_key_look_down == 61){key_look_down = Key_HOME;} IF (user_key_look_down == 62){key_look_down = Key_PGUP;} IF (user_key_look_down == 63){key_look_down = Key_DEL;} IF (user_key_look_down == 64){key_look_down = Key_END;} IF (user_key_look_down == 65){key_look_down = Key_PGDN;} IF (user_key_look_down == 66){key_look_down = Key_TAB;} IF (user_key_look_down == 67){key_look_down = Key_BRACKL;} IF (user_key_look_down == 68){key_look_down = Key_BRACKR;} IF (user_key_look_down == 69){key_look_down = Key_SEMIC;} IF (user_key_look_down == 70){key_look_down = Key_APOS;} IF (user_key_look_down == 71){key_look_down = Key_ENTER;} IF (user_key_look_down == 72){key_look_down = Key_SHIFT;} IF (user_key_look_down == 73){key_look_down = Key_CAL;} IF (user_key_look_down == 74){key_look_down = Key_CAR;} IF (user_key_look_down == 75){key_look_down = Key_SLASH;} IF (user_key_look_down == 76){key_look_down = Key_CTRL;} IF (user_key_look_down == 77){key_look_down = Key_ALT;} IF (user_key_look_down == 78){key_look_down = Key_SPACE;} // strafe right key assignments IF (user_key_strafe_right == 1){key_strafe_right = Key_A;} IF (user_key_strafe_right == 2){key_strafe_right = Key_B;} IF (user_key_strafe_right == 3){key_strafe_right = Key_C;} IF (user_key_strafe_right == 4){key_strafe_right = Key_D;} IF (user_key_strafe_right == 5){key_strafe_right = Key_E;} IF (user_key_strafe_right == 6){key_strafe_right = Key_F;} IF (user_key_strafe_right == 7){key_strafe_right = Key_G;} IF (user_key_strafe_right == 8){key_strafe_right = Key_H;} IF (user_key_strafe_right == 9){key_strafe_right = Key_I;} IF (user_key_strafe_right == 10){key_strafe_right = Key_J;} IF (user_key_strafe_right == 11){key_strafe_right = Key_K;} IF (user_key_strafe_right == 12){key_strafe_right = Key_L;} IF (user_key_strafe_right == 13){key_strafe_right = Key_M;} IF (user_key_strafe_right == 14){key_strafe_right = Key_N;} IF (user_key_strafe_right == 15){key_strafe_right = Key_O;} IF (user_key_strafe_right == 16){key_strafe_right = Key_P;} IF (user_key_strafe_right == 17){key_strafe_right = Key_Q;} IF (user_key_strafe_right == 18){key_strafe_right = Key_R;} IF (user_key_strafe_right == 19){key_strafe_right = Key_S;} IF (user_key_strafe_right == 20){key_strafe_right = Key_T;} IF (user_key_strafe_right == 21){key_strafe_right = Key_U;} IF (user_key_strafe_right == 22){key_strafe_right = Key_V;} IF (user_key_strafe_right == 23){key_strafe_right = Key_W;} IF (user_key_strafe_right == 24){key_strafe_right = Key_X;} IF (user_key_strafe_right == 25){key_strafe_right = Key_Y;} IF (user_key_strafe_right == 26){key_strafe_right = Key_Z;} IF (user_key_strafe_right == 27){key_strafe_right = Key_CUU;} IF (user_key_strafe_right == 28){key_strafe_right = Key_CUD;} IF (user_key_strafe_right == 29){key_strafe_right = Key_CUR;} IF (user_key_strafe_right == 30){key_strafe_right = Key_CUL;} IF (user_key_strafe_right == 31){key_strafe_right = Key_1;} IF (user_key_strafe_right == 32){key_strafe_right = Key_2;} IF (user_key_strafe_right == 33){key_strafe_right = Key_3;} IF (user_key_strafe_right == 34){key_strafe_right = Key_4;} IF (user_key_strafe_right == 35){key_strafe_right = Key_5;} IF (user_key_strafe_right == 36){key_strafe_right = Key_6;} IF (user_key_strafe_right == 37){key_strafe_right = Key_7;} IF (user_key_strafe_right == 38){key_strafe_right = Key_8;} IF (user_key_strafe_right == 39){key_strafe_right = Key_9;} IF (user_key_strafe_right == 40){key_strafe_right = Key_0;} IF (user_key_strafe_right == 41){key_strafe_right = Key_F1;} IF (user_key_strafe_right == 42){key_strafe_right = Key_F2;} IF (user_key_strafe_right == 43){key_strafe_right = Key_F3;} IF (user_key_strafe_right == 44){key_strafe_right = Key_F4;} IF (user_key_strafe_right == 45){key_strafe_right = Key_F5;} IF (user_key_strafe_right == 46){key_strafe_right = Key_F6;} IF (user_key_strafe_right == 47){key_strafe_right = Key_F7;} IF (user_key_strafe_right == 48){key_strafe_right = Key_F8;} IF (user_key_strafe_right == 49){key_strafe_right = Key_F9;} IF (user_key_strafe_right == 50){key_strafe_right = Key_F10;} IF (user_key_strafe_right == 51){key_strafe_right = Key_F11;} IF (user_key_strafe_right == 52){key_strafe_right = Key_F12;} IF (user_key_strafe_right == 53){key_strafe_right = Key_ESC;} IF (user_key_strafe_right == 54){key_strafe_right = Key_PAUSE;} IF (user_key_strafe_right == 55){key_strafe_right = Key_GRAVE;} IF (user_key_strafe_right == 56){key_strafe_right = Key_MINUSC;} IF (user_key_strafe_right == 57){key_strafe_right = Key_EQUALS;} IF (user_key_strafe_right == 58){key_strafe_right = Key_BKSL;} IF (user_key_strafe_right == 59){key_strafe_right = Key_BKSP;} IF (user_key_strafe_right == 60){key_strafe_right = Key_INS;} IF (user_key_strafe_right == 61){key_strafe_right = Key_HOME;} IF (user_key_strafe_right == 62){key_strafe_right = Key_PGUP;} IF (user_key_strafe_right == 63){key_strafe_right = Key_DEL;} IF (user_key_strafe_right == 64){key_strafe_right = Key_END;} IF (user_key_strafe_right == 65){key_strafe_right = Key_PGDN;} IF (user_key_strafe_right == 66){key_strafe_right = Key_TAB;} IF (user_key_strafe_right == 67){key_strafe_right = Key_BRACKL;} IF (user_key_strafe_right == 68){key_strafe_right = Key_BRACKR;} IF (user_key_strafe_right == 69){key_strafe_right = Key_SEMIC;} IF (user_key_strafe_right == 70){key_strafe_right = Key_APOS;} IF (user_key_strafe_right == 71){key_strafe_right = Key_ENTER;} IF (user_key_strafe_right == 72){key_strafe_right = Key_SHIFT;} IF (user_key_strafe_right == 73){key_strafe_right = Key_CAL;} IF (user_key_strafe_right == 74){key_strafe_right = Key_CAR;} IF (user_key_strafe_right == 75){key_strafe_right = Key_SLASH;} IF (user_key_strafe_right == 76){key_strafe_right = Key_CTRL;} IF (user_key_strafe_right == 77){key_strafe_right = Key_ALT;} IF (user_key_strafe_right == 78){key_strafe_right = Key_SPACE;} // strafe left key assignments IF (user_key_strafe_left == 1){key_strafe_left = Key_A;} IF (user_key_strafe_left == 2){key_strafe_left = Key_B;} IF (user_key_strafe_left == 3){key_strafe_left = Key_C;} IF (user_key_strafe_left == 4){key_strafe_left = Key_D;} IF (user_key_strafe_left == 5){key_strafe_left = Key_E;} IF (user_key_strafe_left == 6){key_strafe_left = Key_F;} IF (user_key_strafe_left == 7){key_strafe_left = Key_G;} IF (user_key_strafe_left == 8){key_strafe_left = Key_H;} IF (user_key_strafe_left == 9){key_strafe_left = Key_I;} IF (user_key_strafe_left == 10){key_strafe_left = Key_J;} IF (user_key_strafe_left == 11){key_strafe_left = Key_K;} IF (user_key_strafe_left == 12){key_strafe_left = Key_L;} IF (user_key_strafe_left == 13){key_strafe_left = Key_M;} IF (user_key_strafe_left == 14){key_strafe_left = Key_N;} IF (user_key_strafe_left == 15){key_strafe_left = Key_O;} IF (user_key_strafe_left == 16){key_strafe_left = Key_P;} IF (user_key_strafe_left == 17){key_strafe_left = Key_Q;} IF (user_key_strafe_left == 18){key_strafe_left = Key_R;} IF (user_key_strafe_left == 19){key_strafe_left = Key_S;} IF (user_key_strafe_left == 20){key_strafe_left = Key_T;} IF (user_key_strafe_left == 21){key_strafe_left = Key_U;} IF (user_key_strafe_left == 22){key_strafe_left = Key_V;} IF (user_key_strafe_left == 23){key_strafe_left = Key_W;} IF (user_key_strafe_left == 24){key_strafe_left = Key_X;} IF (user_key_strafe_left == 25){key_strafe_left = Key_Y;} IF (user_key_strafe_left == 26){key_strafe_left = Key_Z;} IF (user_key_strafe_left == 27){key_strafe_left = Key_CUU;} IF (user_key_strafe_left == 28){key_strafe_left = Key_CUD;} IF (user_key_strafe_left == 29){key_strafe_left = Key_CUR;} IF (user_key_strafe_left == 30){key_strafe_left = Key_CUL;} IF (user_key_strafe_left == 31){key_strafe_left = Key_1;} IF (user_key_strafe_left == 32){key_strafe_left = Key_2;} IF (user_key_strafe_left == 33){key_strafe_left = Key_3;} IF (user_key_strafe_left == 34){key_strafe_left = Key_4;} IF (user_key_strafe_left == 35){key_strafe_left = Key_5;} IF (user_key_strafe_left == 36){key_strafe_left = Key_6;} IF (user_key_strafe_left == 37){key_strafe_left = Key_7;} IF (user_key_strafe_left == 38){key_strafe_left = Key_8;} IF (user_key_strafe_left == 39){key_strafe_left = Key_9;} IF (user_key_strafe_left == 40){key_strafe_left = Key_0;} IF (user_key_strafe_left == 41){key_strafe_left = Key_F1;} IF (user_key_strafe_left == 42){key_strafe_left = Key_F2;} IF (user_key_strafe_left == 43){key_strafe_left = Key_F3;} IF (user_key_strafe_left == 44){key_strafe_left = Key_F4;} IF (user_key_strafe_left == 45){key_strafe_left = Key_F5;} IF (user_key_strafe_left == 46){key_strafe_left = Key_F6;} IF (user_key_strafe_left == 47){key_strafe_left = Key_F7;} IF (user_key_strafe_left == 48){key_strafe_left = Key_F8;} IF (user_key_strafe_left == 49){key_strafe_left = Key_F9;} IF (user_key_strafe_left == 50){key_strafe_left = Key_F10;} IF (user_key_strafe_left == 51){key_strafe_left = Key_F11;} IF (user_key_strafe_left == 52){key_strafe_left = Key_F12;} IF (user_key_strafe_left == 53){key_strafe_left = Key_ESC;} IF (user_key_strafe_left == 54){key_strafe_left = Key_PAUSE;} IF (user_key_strafe_left == 55){key_strafe_left = Key_GRAVE;} IF (user_key_strafe_left == 56){key_strafe_left = Key_MINUSC;} IF (user_key_strafe_left == 57){key_strafe_left = Key_EQUALS;} IF (user_key_strafe_left == 58){key_strafe_left = Key_BKSL;} IF (user_key_strafe_left == 59){key_strafe_left = Key_BKSP;} IF (user_key_strafe_left == 60){key_strafe_left = Key_INS;} IF (user_key_strafe_left == 61){key_strafe_left = Key_HOME;} IF (user_key_strafe_left == 62){key_strafe_left = Key_PGUP;} IF (user_key_strafe_left == 63){key_strafe_left = Key_DEL;} IF (user_key_strafe_left == 64){key_strafe_left = Key_END;} IF (user_key_strafe_left == 65){key_strafe_left = Key_PGDN;} IF (user_key_strafe_left == 66){key_strafe_left = Key_TAB;} IF (user_key_strafe_left == 67){key_strafe_left = Key_BRACKL;} IF (user_key_strafe_left == 68){key_strafe_left = Key_BRACKR;} IF (user_key_strafe_left == 69){key_strafe_left = Key_SEMIC;} IF (user_key_strafe_left == 70){key_strafe_left = Key_APOS;} IF (user_key_strafe_left == 71){key_strafe_left = Key_ENTER;} IF (user_key_strafe_left == 72){key_strafe_left = Key_SHIFT;} IF (user_key_strafe_left == 73){key_strafe_left = Key_CAL;} IF (user_key_strafe_left == 74){key_strafe_left = Key_CAR;} IF (user_key_strafe_left == 75){key_strafe_left = Key_SLASH;} IF (user_key_strafe_left == 76){key_strafe_left = Key_CTRL;} IF (user_key_strafe_left == 77){key_strafe_left = Key_ALT;} IF (user_key_strafe_left == 78){key_strafe_left = Key_SPACE;} // run key assignments //////////////////////////////////////////////////////////////////////////////////// run = shift but shift is read only ????? /* IF (user_key_run == 1){key_run = Key_A;} IF (user_key_run == 2){key_run = Key_B;} IF (user_key_run == 3){key_run = Key_C;} IF (user_key_run == 4){key_run = Key_D;} IF (user_key_run == 5){key_run = Key_E;} IF (user_key_run == 6){key_run = Key_F;} IF (user_key_run == 7){key_run = Key_G;} IF (user_key_run == 8){key_run = Key_H;} IF (user_key_run == 9){key_run = Key_I;} IF (user_key_run == 10){key_run = Key_J;} IF (user_key_run == 11){key_run = Key_K;} IF (user_key_run == 12){key_run = Key_L;} IF (user_key_run == 13){key_run = Key_M;} IF (user_key_run == 14){key_run = Key_N;} IF (user_key_run == 15){key_run = Key_O;} IF (user_key_run == 16){key_run = Key_P;} IF (user_key_run == 17){key_run = Key_Q;} IF (user_key_run == 18){key_run = Key_R;} IF (user_key_run == 19){key_run = Key_S;} IF (user_key_run == 20){key_run = Key_T;} IF (user_key_run == 21){key_run = Key_U;} IF (user_key_run == 22){key_run = Key_V;} IF (user_key_run == 23){key_run = Key_W;} IF (user_key_run == 24){key_run = Key_X;} IF (user_key_run == 25){key_run = Key_Y;} IF (user_key_run == 26){key_run = Key_Z;} IF (user_key_run == 27){key_run = Key_CUU;} IF (user_key_run == 28){key_run = Key_CUD;} IF (user_key_run == 29){key_run = Key_CUR;} IF (user_key_run == 30){key_run = Key_CUL;} IF (user_key_run == 31){key_run = Key_1;} IF (user_key_run == 32){key_run = Key_2;} IF (user_key_run == 33){key_run = Key_3;} IF (user_key_run == 34){key_run = Key_4;} IF (user_key_run == 35){key_run = Key_5;} IF (user_key_run == 36){key_run = Key_6;} IF (user_key_run == 37){key_run = Key_7;} IF (user_key_run == 38){key_run = Key_8;} IF (user_key_run == 39){key_run = Key_9;} IF (user_key_run == 40){key_run = Key_0;} IF (user_key_run == 41){key_run = Key_F1;} IF (user_key_run == 42){key_run = Key_F2;} IF (user_key_run == 43){key_run = Key_F3;} IF (user_key_run == 44){key_run = Key_F4;} IF (user_key_run == 45){key_run = Key_F5;} IF (user_key_run == 46){key_run = Key_F6;} IF (user_key_run == 47){key_run = Key_F7;} IF (user_key_run == 48){key_run = Key_F8;} IF (user_key_run == 49){key_run = Key_F9;} IF (user_key_run == 50){key_run = Key_F10;} IF (user_key_run == 51){key_run = Key_F11;} IF (user_key_run == 52){key_run = Key_F12;} IF (user_key_run == 53){key_run = Key_ESC;} IF (user_key_run == 54){key_run = Key_PAUSE;} IF (user_key_run == 55){key_run = Key_GRAVE;} IF (user_key_run == 56){key_run = Key_MINUSC;} IF (user_key_run == 57){key_run = Key_EQUALS;} IF (user_key_run == 58){key_run = Key_BKSL;} IF (user_key_run == 59){key_run = Key_BKSP;} IF (user_key_run == 60){key_run = Key_INS;} IF (user_key_run == 61){key_run = Key_HOME;} IF (user_key_run == 62){key_run = Key_PGUP;} IF (user_key_run == 63){key_run = Key_DEL;} IF (user_key_run == 64){key_run = Key_END;} IF (user_key_run == 65){key_run = Key_PGDN;} IF (user_key_run == 66){key_run = Key_TAB;} IF (user_key_run == 67){key_run = Key_BRACKL;} IF (user_key_run == 68){key_run = Key_BRACKR;} IF (user_key_run == 69){key_run = Key_SEMIC;} IF (user_key_run == 70){key_run = Key_APOS;} IF (user_key_run == 71){key_run = Key_ENTER;} IF (user_key_run == 72){key_run = Key_SHIFT;} IF (user_key_run == 73){key_run = Key_CAL;} IF (user_key_run == 74){key_run = Key_CAR;} IF (user_key_run == 75){key_run = Key_SLASH;} IF (user_key_run == 76){key_run = Key_CTRL;} IF (user_key_run == 77){key_run = Key_ALT;} IF (user_key_run == 78){key_run = Key_SPACE;} */ // jump key assignments IF (user_key_jump == 1){key_jump = Key_A;} IF (user_key_jump == 2){key_jump = Key_B;} IF (user_key_jump == 3){key_jump = Key_C;} IF (user_key_jump == 4){key_jump = Key_D;} IF (user_key_jump == 5){key_jump = Key_E;} IF (user_key_jump == 6){key_jump = Key_F;} IF (user_key_jump == 7){key_jump = Key_G;} IF (user_key_jump == 8){key_jump = Key_H;} IF (user_key_jump == 9){key_jump = Key_I;} IF (user_key_jump == 10){key_jump = Key_J;} IF (user_key_jump == 11){key_jump = Key_K;} IF (user_key_jump == 12){key_jump = Key_L;} IF (user_key_jump == 13){key_jump = Key_M;} IF (user_key_jump == 14){key_jump = Key_N;} IF (user_key_jump == 15){key_jump = Key_O;} IF (user_key_jump == 16){key_jump = Key_P;} IF (user_key_jump == 17){key_jump = Key_Q;} IF (user_key_jump == 18){key_jump = Key_R;} IF (user_key_jump == 19){key_jump = Key_S;} IF (user_key_jump == 20){key_jump = Key_T;} IF (user_key_jump == 21){key_jump = Key_U;} IF (user_key_jump == 22){key_jump = Key_V;} IF (user_key_jump == 23){key_jump = Key_W;} IF (user_key_jump == 24){key_jump = Key_X;} IF (user_key_jump == 25){key_jump = Key_Y;} IF (user_key_jump == 26){key_jump = Key_Z;} IF (user_key_jump == 27){key_jump = Key_CUU;} IF (user_key_jump == 28){key_jump = Key_CUD;} IF (user_key_jump == 29){key_jump = Key_CUR;} IF (user_key_jump == 30){key_jump = Key_CUL;} IF (user_key_jump == 31){key_jump = Key_1;} IF (user_key_jump == 32){key_jump = Key_2;} IF (user_key_jump == 33){key_jump = Key_3;} IF (user_key_jump == 34){key_jump = Key_4;} IF (user_key_jump == 35){key_jump = Key_5;} IF (user_key_jump == 36){key_jump = Key_6;} IF (user_key_jump == 37){key_jump = Key_7;} IF (user_key_jump == 38){key_jump = Key_8;} IF (user_key_jump == 39){key_jump = Key_9;} IF (user_key_jump == 40){key_jump = Key_0;} IF (user_key_jump == 41){key_jump = Key_F1;} IF (user_key_jump == 42){key_jump = Key_F2;} IF (user_key_jump == 43){key_jump = Key_F3;} IF (user_key_jump == 44){key_jump = Key_F4;} IF (user_key_jump == 45){key_jump = Key_F5;} IF (user_key_jump == 46){key_jump = Key_F6;} IF (user_key_jump == 47){key_jump = Key_F7;} IF (user_key_jump == 48){key_jump = Key_F8;} IF (user_key_jump == 49){key_jump = Key_F9;} IF (user_key_jump == 50){key_jump = Key_F10;} IF (user_key_jump == 51){key_jump = Key_F11;} IF (user_key_jump == 52){key_jump = Key_F12;} IF (user_key_jump == 53){key_jump = Key_ESC;} IF (user_key_jump == 54){key_jump = Key_PAUSE;} IF (user_key_jump == 55){key_jump = Key_GRAVE;} IF (user_key_jump == 56){key_jump = Key_MINUSC;} IF (user_key_jump == 57){key_jump = Key_EQUALS;} IF (user_key_jump == 58){key_jump = Key_BKSL;} IF (user_key_jump == 59){key_jump = Key_BKSP;} IF (user_key_jump == 60){key_jump = Key_INS;} IF (user_key_jump == 61){key_jump = Key_HOME;} IF (user_key_jump == 62){key_jump = Key_PGUP;} IF (user_key_jump == 63){key_jump = Key_DEL;} IF (user_key_jump == 64){key_jump = Key_END;} IF (user_key_jump == 65){key_jump = Key_PGDN;} IF (user_key_jump == 66){key_jump = Key_TAB;} IF (user_key_jump == 67){key_jump = Key_BRACKL;} IF (user_key_jump == 68){key_jump = Key_BRACKR;} IF (user_key_jump == 69){key_jump = Key_SEMIC;} IF (user_key_jump == 70){key_jump = Key_APOS;} IF (user_key_jump == 71){key_jump = Key_ENTER;} IF (user_key_jump == 72){key_jump = Key_SHIFT;} IF (user_key_jump == 73){key_jump = Key_CAL;} IF (user_key_jump == 74){key_jump = Key_CAR;} IF (user_key_jump == 75){key_jump = Key_SLASH;} IF (user_key_jump == 76){key_jump = Key_CTRL;} IF (user_key_jump == 77){key_jump = Key_ALT;} IF (user_key_jump == 78){key_jump = Key_SPACE;} //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Set the angular forces according to the player intentions aforce.PAN = -astrength.PAN*(key_turn_right-key_turn_left+JOY_FORCE.X);////////////// changed the left and right controls aforce.TILT = astrength.TILT*(key_look_up-key_look_down);///////////////////////// changed the look up and look down controls IF (MOUSE_MODE == 0) { // Mouse switched off? aforce.PAN += -astrength.PAN*MOUSE_FORCE.X*mouseview; aforce.TILT += astrength.TILT*MOUSE_FORCE.Y*mouseview; } aforce.ROLL = 0; // Set ROLL force if ALT was pressed IF (KEY_ALT != 0) { aforce.ROLL = aforce.PAN; aforce.PAN = 0; } // Double the forces in case the player pressed SHIFT IF (KEY_SHIFT != 0) { aforce.PAN += aforce.PAN; aforce.TILT += aforce.TILT; aforce.ROLL += aforce.ROLL; } // Limit the forces in case the player // pressed buttons, mouse and joystick simultaneously limit.PAN = 2*astrength.PAN; limit.TILT = 2*astrength.TILT; limit.ROLL = 2*astrength.ROLL; IF (aforce.PAN > limit.PAN) { aforce.PAN = limit.PAN; } IF (aforce.PAN < -limit.PAN) { aforce.PAN = -limit.PAN; } IF (aforce.TILT > limit.TILT) { aforce.TILT = limit.TILT; } IF (aforce.TILT < -limit.TILT) { aforce.TILT = -limit.TILT; } IF (aforce.ROLL > limit.ROLL) { aforce.ROLL = limit.ROLL; } IF (aforce.ROLL < -limit.ROLL) { aforce.ROLL = -limit.ROLL; } // Set the cartesian forces according to the player intentions force.X = strength.X*(key_forward-key_reverse+JOY_FORCE.Y);////////// changed the forward and reverse controls force.Y = strength.Y*(key_strafe_left-key_strafe_right);//////////////////////// changed the strafe controls force.Z = strength.Z*(key_jump-KEY_END);//////////////////////////////////////// changed the jump control (ducking not used here) IF (MOUSE_MODE == 0) { // Mouse switched off? force.X += strength.X*MOUSE_RIGHT*mouseview; } // Double the forces in case the player pressed SHIFT IF (KEY_SHIFT != 0) { force.X += force.X; force.Y += force.Y; force.Z += force.Z; } // Limit the forces in case the player tried to cheat by // operating buttons, mouse and joystick simultaneously limit.X = 2*strength.X; limit.Y = 2*strength.Y; limit.Z = 2*strength.Z; IF (force.X > limit.X) { force.X = limit.X; } IF (force.X < -limit.X) { force.X = -limit.X; } IF (force.Y > limit.Y) { force.Y = limit.Y; } IF (force.Y < -limit.Y) { force.Y = -limit.Y; } IF (force.Z > limit.Z) { force.Z = limit.Z; } IF (force.Z < -limit.Z) { force.Z = -limit.Z; } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// end of _player_intentions from movement.wdl // from template weapons.wdl // Desc: fire weapon function weapon_fire() { weapon_firing = 1; // added (key_contol_menu.VISIBLE == OFF) to prevent weapon from being // activated when clicking the buttons on the key_contol_menu page while(key_contol_menu.VISIBLE == OFF) && (key_use_weapon || MOUSE_LEFT) { wait(1); } weapon_firing = 0; } // removed ON_CTRL weapon_fire; as it it called in a while loop in the function main ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// end of weapon_fire from weapons.wdl // Desc: deactivate keyboard input function reset_keys() { ON_A = NULL; ON_B = NULL; ON_C = NULL; ON_D = NULL; ON_E = NULL; ON_F = NULL; ON_G = NULL; ON_H = NULL; ON_I = NULL; ON_J = NULL; ON_K = NULL; ON_L = NULL; ON_M = NULL; ON_N = NULL; ON_O = NULL; ON_P = NULL; ON_Q = NULL; ON_R = NULL; ON_S = NULL; ON_T = NULL; ON_U = NULL; ON_V = NULL; ON_W = NULL; ON_X = NULL; ON_Y = NULL; ON_Z = NULL; //ON_CUU = NULL;forward //ON_CUD = NULL;reverse //ON_CUR = NULL;turn right //ON_CUL = NULL;turn left ON_1 = NULL; ON_2 = NULL; ON_3 = NULL; ON_4 = NULL; ON_5 = NULL; ON_6 = NULL; ON_7 = NULL; ON_8 = NULL; ON_9 = NULL; ON_0 = NULL; //ON_F1 = NULL; user defined control menu ON_F2 = NULL; ON_F3 = NULL; ON_F4 = NULL; ON_F5 = NULL; ON_F6 = NULL; //ON_F7 = NULL;1st / 3rd person view ON_F8 = NULL; ON_F9 = NULL; //ON_F10 = NULL;exit ON_F11 = NULL; ON_F12 = NULL; //ON_ESC = NULL;default menu ON_PAUSE = NULL; ON_GRAVE = NULL; ON_MINUSC = NULL; ON_EQUALS = NULL; ON_BKSL = NULL; ON_BKSP = NULL; ON_INS = NULL; //ON_HOME = NULL;jump //ON_PGUP = NULL;look up ON_DEL = NULL; ON_END = NULL; //ON_PGDN = NULL;look down ON_TAB = NULL; ON_BRACKL = NULL; ON_BRACKR = NULL; ON_SEMIC = NULL; ON_APOS = NULL; //ON_ENTER = NULL; //ON_SHIFT = NULL;run / double force //ON_CAL = NULL;strafe left //ON_CAR = NULL;strafe right ON_SLASH = NULL; //ON_CTRL = NULL;fire weapon //ON_ALT = NULL;roll force ON_SPACE = NULL; }