Subversion Repositories eduke32

Rev

Rev 7968 | 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
 
6015 terminx 37
// config file name
6010 terminx 38
#define SETUPFILENAME APPBASENAME ".cfg"
5 Plagman 39
 
6056 hendricks2 40
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
4826 hendricks2 41
#define MAXJOYBUTTONS 32
42
#define MAXJOYBUTTONSANDHATS (MAXJOYBUTTONS+4)
5 Plagman 43
 
6056 hendricks2 44
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
5 Plagman 45
#define MAXMOUSEAXES 2
46
 
6056 hendricks2 47
// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp
4827 hendricks2 48
#define MAXJOYAXES 9
4826 hendricks2 49
#define MAXJOYDIGITAL (MAXJOYAXES*2)
5 Plagman 50
 
7123 terminx 51
// default mouse scale
2728 hendricks2 52
#define DEFAULTMOUSEANALOGUESCALE           65536
5 Plagman 53
 
6015 terminx 54
// default joystick settings
2728 hendricks2 55
 
56
#if defined(GEKKO)
57
#define DEFAULTJOYSTICKANALOGUESCALE        16384
58
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
59
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
60
#else
61
#define DEFAULTJOYSTICKANALOGUESCALE        65536
7968 hendricks2 62
#define DEFAULTJOYSTICKANALOGUEDEAD         2000
2728 hendricks2 63
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
64
#endif
65
 
4766 hendricks2 66
#ifdef __cplusplus
67
}
5 Plagman 68
#endif
69
#endif
70