Subversion Repositories eduke32

Rev

Rev 4747 | Rev 4826 | 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
3527 helixhorne 49
// XXX: out of sync with jmact/_control.h
5 Plagman 50
#define MAXJOYBUTTONS (32+4)
51
 
52
// Number of Mouse Axes
3527 helixhorne 53
// KEEPINSYNC jmact/_control.h
5 Plagman 54
#define MAXMOUSEAXES 2
55
 
56
// Number of JOY axes
3527 helixhorne 57
// KEEPINSYNC jmact/_control.h
5 Plagman 58
#define MAXJOYAXES 8
59
 
60
// DEFAULT mouse sensitivity scale
2728 hendricks2 61
#define DEFAULTMOUSESENSITIVITY             7
62
#define DEFAULTMOUSEANALOGUESCALE           65536
5 Plagman 63
 
2728 hendricks2 64
// DEFAULT joystick settings
65
 
66
#if defined(GEKKO)
67
#define DEFAULTJOYSTICKANALOGUESCALE        16384
68
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
69
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
70
#else
71
#define DEFAULTJOYSTICKANALOGUESCALE        65536
72
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
73
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
74
#endif
75
 
5 Plagman 76
enum
77
   {
78
   gametype_network=3,
79
   gametype_serial=1,
80
   gametype_modem=2
81
   };
82
 
83
enum
84
   {
85
   connecttype_dialing=0,
86
   connecttype_answer=1,
87
   connecttype_alreadyconnected=2
88
   };
89
 
90
enum
91
   {
92
   screenbuffer_320x200,
93
   screenbuffer_640x400,
94
   screenbuffer_640x480,
95
   screenbuffer_800x600,
96
   screenbuffer_1024x768,
97
   screenbuffer_1280x1024,
98
   screenbuffer_1600x1200
99
   };
100
 
101
enum
102
   {
103
   vesa_320x200,
104
   vesa_360x200,
105
   vesa_320x240,
106
   vesa_360x240,
107
   vesa_320x400,
108
   vesa_360x400,
109
   vesa_640x350,
110
   vesa_640x400,
111
   vesa_640x480,
112
   vesa_800x600,
113
   vesa_1024x768,
114
   vesa_1280x1024,
115
   vesa_1600x1200
116
   };
117
 
118
enum
119
   {
120
   screenmode_chained,
121
   screenmode_vesa,
122
   screenmode_buffered,
123
   screenmode_tseng,
124
   screenmode_paradise,
125
   screenmode_s3,
126
   screenmode_crystal,
127
   screenmode_redblue,
128
   };
129
 
130
 
4766 hendricks2 131
#ifdef __cplusplus
132
}
5 Plagman 133
#endif
134
#endif
135