2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
40 int joydefs_calibrate_flag=0;
42 int Joy_is_Sidewinder=0; //not needed, but lots of main/* stuff use it
49 int joycal_message( char * title, char * text )
53 m[0].type = NM_TYPE_TEXT; m[0].text = text;
54 m[1].type = NM_TYPE_MENU; m[1].text = TXT_OK;
55 i = newmenu_do( title, NULL, 2, m, NULL );
61 void joydefs_calibrate()
63 joycal_message("No Calibration", "calibration should be performed\nthrough windows");
67 void joydef_menuset_1(int nitems, newmenu_item * items, int *last_key, int citem )
70 int oc_type = Config_control_type;
77 if (items[i].value) Config_control_type = i;
79 if (Config_control_type == 2) Config_control_type = CONTROL_MOUSE;
81 if ( (oc_type != Config_control_type) && (Config_control_type == CONTROL_THRUSTMASTER_FCS ) ) {
82 nm_messagebox( TXT_IMPORTANT_NOTE, 1, TXT_OK, TXT_FCS );
85 if (oc_type != Config_control_type) {
86 switch (Config_control_type) {
88 case CONTROL_JOYSTICK:
89 case CONTROL_FLIGHTSTICK_PRO:
90 case CONTROL_THRUSTMASTER_FCS:
91 case CONTROL_GRAVIS_GAMEPAD:
92 // case CONTROL_MOUSE:
93 // case CONTROL_CYBERMAN:
94 joydefs_calibrate_flag = 1;
101 extern ubyte kc_use_external_control;
102 extern ubyte kc_enable_external_control;
103 extern ubyte *kc_external_name;
105 void joydefs_config()
108 int i, j, i1=0, nitems=7;
110 m[0].type = NM_TYPE_RADIO; m[0].text = "KEYBOARD"; m[0].value = 0; m[0].group = 0;
111 m[1].type = NM_TYPE_RADIO; m[1].text = "JOYSTICK"; m[1].value = 0; m[1].group = 0;
112 m[2].type = NM_TYPE_RADIO; m[2].text = "MOUSE"; m[2].value = 0; m[2].group = 0;
113 m[3].type = NM_TYPE_TEXT; m[3].text="";
114 m[4].type = NM_TYPE_MENU; m[4].text="CUSTOMIZE ABOVE";
115 m[5].type = NM_TYPE_MENU; m[5].text="CUSTOMIZE KEYBOARD";
116 m[6].type = NM_TYPE_MENU; m[6].text="CUSTOMIZE D1X KEYS";
119 i = Config_control_type;
120 if(i==CONTROL_MOUSE) i = 2;
122 i1 = newmenu_do1( NULL, TXT_CONTROLS, nitems, m, joydef_menuset_1, i1 );
124 //added 6-15-99 Owen Evans
125 for (j = 0; j <= 2; j++)
127 Config_control_type = j;
128 i = Config_control_type;
129 if (Config_control_type == 2)
130 Config_control_type = CONTROL_MOUSE;
135 kconfig (i, m[i].text);
138 kconfig(0, "KEYBOARD");
141 kconfig(3, "D1X KEYS");