Subversion Repositories eduke32

Rev

Rev 4766 | Rev 4827 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 Plagman 1
//-------------------------------------------------------------------------
2
/*
1652 terminx 3
Copyright (C) 2010 EDuke32 developers and contributors
5 Plagman 4
 
1652 terminx 5
This file is part of EDuke32.
5 Plagman 6
 
484 terminx 7
EDuke32 is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License version 2
9
as published by the Free Software Foundation.
5 Plagman 10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
15
See the GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
4541 hendricks2 19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
5 Plagman 20
*/
21
//-------------------------------------------------------------------------
22
 
23
//****************************************************************************
24
//
25
// gamedefs.h
26
//
27
// common defines between the game and the setup program
28
//
29
//****************************************************************************
30
 
4747 terminx 31
#ifndef gamedefs_public_h_
32
#define gamedefs_public_h_
4766 hendricks2 33
#ifdef __cplusplus
34
extern "C" {
5 Plagman 35
#endif
36
 
37
//****************************************************************************
38
//
39
// DEFINES
40
//
41
//****************************************************************************
42
 
43
//
44
// Setup program defines
45
//
1178 terminx 46
#define SETUPFILENAME "eduke32.cfg"
5 Plagman 47
 
48
// Number of JOY buttons
4826 hendricks2 49
// KEEPINSYNC jmact/_control.h
50
#define MAXJOYBUTTONS 32
51
#define MAXJOYBUTTONSANDHATS (MAXJOYBUTTONS+4)
5 Plagman 52
 
53
// Number of Mouse Axes
3527 helixhorne 54
// KEEPINSYNC jmact/_control.h
5 Plagman 55
#define MAXMOUSEAXES 2
4826 hendricks2 56
#define MAXMOUSEDIGITAL (MAXMOUSEAXES*2)
5 Plagman 57
 
58
// Number of JOY axes
3527 helixhorne 59
// KEEPINSYNC jmact/_control.h
5 Plagman 60
#define MAXJOYAXES 8
4826 hendricks2 61
#define MAXJOYDIGITAL (MAXJOYAXES*2)
5 Plagman 62
 
63
// DEFAULT mouse sensitivity scale
2728 hendricks2 64
#define DEFAULTMOUSESENSITIVITY             7
65
#define DEFAULTMOUSEANALOGUESCALE           65536
5 Plagman 66
 
2728 hendricks2 67
// DEFAULT joystick settings
68
 
69
#if defined(GEKKO)
70
#define DEFAULTJOYSTICKANALOGUESCALE        16384
71
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
72
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
73
#else
74
#define DEFAULTJOYSTICKANALOGUESCALE        65536
75
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
76
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
77
#endif
78
 
5 Plagman 79
enum
80
   {
81
   gametype_network=3,
82
   gametype_serial=1,
83
   gametype_modem=2
84
   };
85
 
86
enum
87
   {
88
   connecttype_dialing=0,
89
   connecttype_answer=1,
90
   connecttype_alreadyconnected=2
91
   };
92
 
93
enum
94
   {
95
   screenbuffer_320x200,
96
   screenbuffer_640x400,
97
   screenbuffer_640x480,
98
   screenbuffer_800x600,
99
   screenbuffer_1024x768,
100
   screenbuffer_1280x1024,
101
   screenbuffer_1600x1200
102
   };
103
 
104
enum
105
   {
106
   vesa_320x200,
107
   vesa_360x200,
108
   vesa_320x240,
109
   vesa_360x240,
110
   vesa_320x400,
111
   vesa_360x400,
112
   vesa_640x350,
113
   vesa_640x400,
114
   vesa_640x480,
115
   vesa_800x600,
116
   vesa_1024x768,
117
   vesa_1280x1024,
118
   vesa_1600x1200
119
   };
120
 
121
enum
122
   {
123
   screenmode_chained,
124
   screenmode_vesa,
125
   screenmode_buffered,
126
   screenmode_tseng,
127
   screenmode_paradise,
128
   screenmode_s3,
129
   screenmode_crystal,
130
   screenmode_redblue,
131
   };
132
 
133
 
4766 hendricks2 134
#ifdef __cplusplus
135
}
5 Plagman 136
#endif
137
#endif
138