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.
44 int joydefs_calibrate_flag=0;
46 int Joy_is_Sidewinder=0; //not needed, but lots of main/* stuff use it
53 int joycal_message( char * title, char * text )
57 m[0].type = NM_TYPE_TEXT; m[0].text = text;
58 m[1].type = NM_TYPE_MENU; m[1].text = TXT_OK;
59 i = newmenu_do( title, NULL, 2, m, NULL );
65 void joydefs_calibrate()
67 joycal_message("No Calibration", "calibration should be performed\nthrough windows");
71 void joydef_menuset_1(int nitems, newmenu_item * items, int *last_key, int citem )
74 int oc_type = Config_control_type;
81 if (items[i].value) Config_control_type = i;
83 if (Config_control_type == 2) Config_control_type = CONTROL_MOUSE;
85 if ( (oc_type != Config_control_type) && (Config_control_type == CONTROL_THRUSTMASTER_FCS ) ) {
86 nm_messagebox( TXT_IMPORTANT_NOTE, 1, TXT_OK, TXT_FCS );
89 if (oc_type != Config_control_type) {
90 switch (Config_control_type) {
92 case CONTROL_JOYSTICK:
93 case CONTROL_FLIGHTSTICK_PRO:
94 case CONTROL_THRUSTMASTER_FCS:
95 case CONTROL_GRAVIS_GAMEPAD:
96 // case CONTROL_MOUSE:
97 // case CONTROL_CYBERMAN:
98 joydefs_calibrate_flag = 1;
105 extern ubyte kc_use_external_control;
106 extern ubyte kc_enable_external_control;
107 extern ubyte *kc_external_name;
109 void joydefs_config()
112 int i, j, i1=0, nitems=7;
114 m[0].type = NM_TYPE_RADIO; m[0].text = "KEYBOARD"; m[0].value = 0; m[0].group = 0;
115 m[1].type = NM_TYPE_RADIO; m[1].text = "JOYSTICK"; m[1].value = 0; m[1].group = 0;
116 m[2].type = NM_TYPE_RADIO; m[2].text = "MOUSE"; m[2].value = 0; m[2].group = 0;
117 m[3].type = NM_TYPE_TEXT; m[3].text="";
118 m[4].type = NM_TYPE_MENU; m[4].text="CUSTOMIZE ABOVE";
119 m[5].type = NM_TYPE_MENU; m[5].text="CUSTOMIZE KEYBOARD";
120 m[6].type = NM_TYPE_MENU; m[6].text="CUSTOMIZE D1X KEYS";
123 i = Config_control_type;
124 if(i==CONTROL_MOUSE) i = 2;
126 i1 = newmenu_do1( NULL, TXT_CONTROLS, nitems, m, joydef_menuset_1, i1 );
128 //added 6-15-99 Owen Evans
129 for (j = 0; j <= 2; j++)
131 Config_control_type = j;
132 i = Config_control_type;
133 if (Config_control_type == 2)
134 Config_control_type = CONTROL_MOUSE;
139 kconfig (i, m[i].text);
142 kconfig(0, "KEYBOARD");
145 kconfig(3, "D1X KEYS");