]> icculus.org git repositories - btb/d2x.git/blob - main/concntl.h
start refactoring Controls stuff more logically, now that it no longer has anything...
[btb/d2x.git] / main / concntl.h
1 #ifndef _CONCNTL_H_
2 #define _CONCNTL_H_ 1
3
4 #include "fix.h"
5
6
7 #define CONCNTL_NUM_CONTROLS 18
8
9 typedef enum
10 {
11         CONCNTL_LOOKDOWN,   // Pitch forward
12         CONCNTL_LOOKUP,     // Pitch backward
13         CONCNTL_LEFT,       // Turn left
14         CONCNTL_RIGHT,      // Turn right
15         CONCNTL_MOVELEFT,   // Slide left
16         CONCNTL_MOVERIGHT,  // Slide right
17         CONCNTL_MOVEUP,     // Slide up
18         CONCNTL_MOVEDOWN,   // Slide down
19         CONCNTL_BANKLEFT,   // Bank left
20         CONCNTL_BANKRIGHT,  // Bank right
21         CONCNTL_FORWARD,    // Accelerate
22         CONCNTL_BACK,       // Reverse
23         CONCNTL_CRUISEUP,   // Cruise faster
24         CONCNTL_CRUISEDOWN, // Cruise slower
25         CONCNTL_CRUISEOFF,  // Cruise off
26         CONCNTL_NRGSHIELD,  // Energy->Shield
27 } console_control;
28
29
30 fix console_control_down_time(console_control control);
31 unsigned int console_control_down_count(console_control control);
32 unsigned int console_control_up_count(console_control control);
33 unsigned int console_control_state(console_control control);
34 void console_control_set_state(console_control control, int state);
35 void console_control_init(void);
36
37
38 #endif