Subversion Repositories eduke32

Rev

Rev 7968 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7968 Rev 8777
1
//-------------------------------------------------------------------------
1
//-------------------------------------------------------------------------
2
/*
2
/*
3
Copyright (C) 2010 EDuke32 developers and contributors
3
Copyright (C) 2010 EDuke32 developers and contributors
4

4

5
This file is part of EDuke32.
5
This file is part of EDuke32.
6

6

7
EDuke32 is free software; you can redistribute it and/or
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
8
modify it under the terms of the GNU General Public License version 2
9
as published by the Free Software Foundation.
9
as published by the Free Software Foundation.
10

10

11
This program is distributed in the hope that it will be useful,
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14

14

15
See the GNU General Public License for more details.
15
See the GNU General Public License for more details.
16

16

17
You should have received a copy of the GNU General Public License
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
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20
*/
20
*/
21
//-------------------------------------------------------------------------
21
//-------------------------------------------------------------------------
22
22
23
//****************************************************************************
23
//****************************************************************************
24
//
24
//
25
// gamedefs.h
25
// gamedefs.h
26
//
26
//
27
// common defines between the game and the setup program
27
// common defines between the game and the setup program
28
//
28
//
29
//****************************************************************************
29
//****************************************************************************
30
30
31
#ifndef gamedefs_public_h_
31
#ifndef gamedefs_public_h_
32
#define gamedefs_public_h_
32
#define gamedefs_public_h_
33
#ifdef __cplusplus
33
#ifdef __cplusplus
34
extern "C" {
34
extern "C" {
35
#endif
35
#endif
36
36
37
// config file name
37
// config file name
38
#define SETUPFILENAME APPBASENAME ".cfg"
38
#define SETUPFILENAME APPBASENAME ".cfg"
39
39
40
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
40
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
41
#define MAXJOYBUTTONS 32
41
#define MAXJOYBUTTONS 32
42
#define MAXJOYBUTTONSANDHATS (MAXJOYBUTTONS+4)
42
#define MAXJOYBUTTONSANDHATS (MAXJOYBUTTONS+4)
43
43
44
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
44
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
45
#define MAXMOUSEAXES 2
45
#define MAXMOUSEAXES 2
46
#define MAXMOUSEDIGITAL (MAXMOUSEAXES*2)
-
 
47
46
48
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
47
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
49
#define MAXJOYAXES 9
48
#define MAXJOYAXES 9
50
#define MAXJOYDIGITAL (MAXJOYAXES*2)
49
#define MAXJOYDIGITAL (MAXJOYAXES*2)
51
50
52
// default mouse scale
51
// default mouse scale
53
#define DEFAULTMOUSEANALOGUESCALE           65536
52
#define DEFAULTMOUSEANALOGUESCALE           65536
54
53
55
// default joystick settings
54
// default joystick settings
56
55
57
#if defined(GEKKO)
56
#if defined(GEKKO)
58
#define DEFAULTJOYSTICKANALOGUESCALE        16384
57
#define DEFAULTJOYSTICKANALOGUESCALE        16384
59
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
58
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
60
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
59
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
61
#else
60
#else
62
#define DEFAULTJOYSTICKANALOGUESCALE        65536
61
#define DEFAULTJOYSTICKANALOGUESCALE        65536
63
#define DEFAULTJOYSTICKANALOGUEDEAD         2000
62
#define DEFAULTJOYSTICKANALOGUEDEAD         2000
64
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
63
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
65
#endif
64
#endif
66
65
67
#ifdef __cplusplus
66
#ifdef __cplusplus
68
}
67
}
69
#endif
68
#endif
70
#endif
69
#endif
71
70
72
 
71