]> icculus.org git repositories - btb/d2x.git/blob - main/kconfig.h
start refactoring Controls stuff more logically, now that it no longer has anything...
[btb/d2x.git] / main / kconfig.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 /*
15  *
16  * Prototypes for reading controls
17  *
18  */
19
20
21 #ifndef _KCONFIG_H
22 #define _KCONFIG_H
23
24 #include "config.h"
25 #include "gamestat.h"
26
27
28 extern ubyte ExtGameStatus;
29 extern void kconfig(int n, char *title);
30
31
32 typedef enum
33 {
34         AXIS_NONE,
35         AXIS_THROTTLE,
36         AXIS_PITCH,
37         AXIS_LEFTRIGHT,
38         AXIS_TURN,
39         AXIS_UPDOWN,
40         AXIS_BANK,
41 } kc_axis_map;
42
43
44 // added on 2/4/99 by Victor Rachels to add new keys menu
45 #define NUM_D2X_CONTROLS    20
46 #define MAX_D2X_CONTROLS    40
47 // end this section addition - VR
48
49 #define NUM_KEY_CONTROLS    57
50 #define NUM_OTHER_CONTROLS  31
51 #define MAX_CONTROLS        60          // there are actually 48, so this leaves room for more
52
53 extern void kc_set_controls();
54
55 // Tries to use vfx1 head tracking.
56 void kconfig_sense_init();
57
58 extern int kconfig_is_axes_used(int axis);
59
60 #endif /* _KCONFIG_H */