78 lines
2.2 KiB
C
78 lines
2.2 KiB
C
/* $Id: config.h,v 1.1.1.1 2006/03/17 19:55:48 zicodxx Exp $ */
|
|
/*
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
*/
|
|
|
|
/*
|
|
*
|
|
* prototype definitions for descent.cfg reading/writing
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef _CONFIG_H
|
|
#define _CONFIG_H
|
|
|
|
#include "player.h"
|
|
|
|
extern int ReadConfigFile(void);
|
|
extern int WriteConfigFile(void);
|
|
|
|
extern char config_last_player[CALLSIGN_LEN+1];
|
|
|
|
extern char config_last_mission[];
|
|
|
|
extern ubyte Config_digi_volume;
|
|
extern ubyte Config_midi_volume;
|
|
#ifdef MACINTOSH
|
|
typedef struct ConfigInfoStruct
|
|
{
|
|
ubyte mDoNotDisplayOptions;
|
|
ubyte mUse11kSounds;
|
|
ubyte mDisableSound;
|
|
ubyte mDisableMIDIMusic;
|
|
ubyte mChangeResolution;
|
|
ubyte mDoNotPlayMovies;
|
|
ubyte mUserChoseQuit;
|
|
ubyte mGameMonitor;
|
|
ubyte mAcceleration; // allow RAVE level acceleration
|
|
ubyte mInputSprockets; // allow use of Input Sprocket devices
|
|
} ConfigInfo;
|
|
|
|
extern ConfigInfo gConfigInfo;
|
|
extern ubyte Config_master_volume;
|
|
#endif
|
|
extern ubyte Config_redbook_volume;
|
|
extern ubyte Config_control_type;
|
|
extern ubyte Config_channels_reversed;
|
|
extern ubyte Config_joystick_sensitivity;
|
|
extern ubyte Config_mouse_sensitivity;
|
|
extern int joy_deadzone;
|
|
|
|
//values for Config_control_type
|
|
#define CONTROL_NONE 0
|
|
#define CONTROL_JOYSTICK 1
|
|
#define CONTROL_MOUSE 5
|
|
#define CONTROL_MAX_TYPES 8
|
|
#define CONTROL_JOYMOUSE 9
|
|
|
|
// old stuff - kept for compability reasons
|
|
#define CONTROL_FLIGHTSTICK_PRO 2
|
|
#define CONTROL_THRUSTMASTER_FCS 3
|
|
#define CONTROL_GRAVIS_GAMEPAD 4
|
|
#define CONTROL_CYBERMAN 6
|
|
#define CONTROL_WINJOYSTICK 7
|
|
|
|
#define D2X_KEYS 1
|
|
|
|
#endif
|