Subversion Repositories eduke32

Rev

Rev 7123 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7123 Rev 7968
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)
46
#define MAXMOUSEDIGITAL (MAXMOUSEAXES*2)
47
47
48
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
48
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
49
#define MAXJOYAXES 9
49
#define MAXJOYAXES 9
50
#define MAXJOYDIGITAL (MAXJOYAXES*2)
50
#define MAXJOYDIGITAL (MAXJOYAXES*2)
51
51
52
// default mouse scale
52
// default mouse scale
53
#define DEFAULTMOUSEANALOGUESCALE           65536
53
#define DEFAULTMOUSEANALOGUESCALE           65536
54
54
55
// default joystick settings
55
// default joystick settings
56
56
57
#if defined(GEKKO)
57
#if defined(GEKKO)
58
#define DEFAULTJOYSTICKANALOGUESCALE        16384
58
#define DEFAULTJOYSTICKANALOGUESCALE        16384
59
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
59
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
60
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
60
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
61
#else
61
#else
62
#define DEFAULTJOYSTICKANALOGUESCALE        65536
62
#define DEFAULTJOYSTICKANALOGUESCALE        65536
63
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
63
#define DEFAULTJOYSTICKANALOGUEDEAD         2000
64
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
64
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
65
#endif
65
#endif
66
66
67
#ifdef __cplusplus
67
#ifdef __cplusplus
68
}
68
}
69
#endif
69
#endif
70
#endif
70
#endif
71
71
72
 
72