]> icculus.org git repositories - btb/d2x.git/blob - main/config.h
remove rcs tags
[btb/d2x.git] / main / config.h
1 /*
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-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 /*
15  *
16  * prototype definitions for descent.cfg reading/writing
17  *
18  */
19
20
21 #ifndef _CONFIG_H
22 #define _CONFIG_H
23
24 #include "player.h"
25 #include "cvar.h"
26
27 extern int ReadConfigFile(void);
28 extern int WriteConfigFile(void);
29
30 extern cvar_t config_last_player;
31 extern cvar_t config_last_mission;
32
33 extern cvar_t Config_digi_volume;
34 extern cvar_t Config_midi_volume;
35 #ifdef MACINTOSH
36 typedef struct ConfigInfoStruct
37 {
38         ubyte   mDoNotDisplayOptions;
39         ubyte   mUse11kSounds;
40         ubyte   mDisableSound;
41         ubyte   mDisableMIDIMusic;
42         ubyte   mChangeResolution;
43         ubyte   mDoNotPlayMovies;
44         ubyte   mUserChoseQuit;
45         ubyte   mGameMonitor;
46         ubyte   mAcceleration;                          // allow RAVE level acceleration
47         ubyte   mInputSprockets;                        // allow use of Input Sprocket devices
48 } ConfigInfo;
49
50 extern ConfigInfo gConfigInfo;
51 extern ubyte Config_master_volume;
52 #endif
53 extern cvar_t Config_redbook_volume;
54 extern ubyte Config_control_type;
55 extern cvar_t Config_channels_reversed;
56 extern ubyte Config_joystick_sensitivity;
57
58 //values for Config_control_type
59 #define CONTROL_NONE 0
60 #define CONTROL_JOYSTICK 1
61 #define CONTROL_FLIGHTSTICK_PRO 2
62 #define CONTROL_THRUSTMASTER_FCS 3
63 #define CONTROL_GRAVIS_GAMEPAD 4
64 #define CONTROL_MOUSE 5
65 #define CONTROL_CYBERMAN 6
66 #define CONTROL_WINJOYSTICK 7
67
68 #define CONTROL_MAX_TYPES 8
69
70 #endif