Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #ifndef _OPTIONS_H_ |
2 | #define _OPTIONS_H_ |
||
3 | |||
4 | #include "dr_types.h" |
||
5 | |||
6 | extern int gKey_defns[18]; |
||
7 | extern tRadio_bastards gRadio_bastards__options[13]; // suffix added to avoid duplicate symbol |
||
8 | extern int gKey_count; |
||
9 | extern int gLast_graph_sel__options; // suffix added to avoid duplicate symbol |
||
10 | extern char* gKey_names[125]; |
||
11 | extern int gPending_entry; |
||
12 | extern tInterface_spec* gThe_interface_spec__options; // suffix added to avoid duplicate symbol |
||
13 | extern int gOrig_key_mapping[67]; |
||
14 | extern br_pixelmap* gDials_pix; |
||
15 | extern int gCurrent_key; |
||
16 | |||
17 | void DrawDial(int pWhich_one, int pWhich_stage); |
||
18 | |||
19 | void MoveDialFromTo(int pWhich_one, int pOld_stage, int pNew_stage); |
||
20 | |||
21 | void SoundOptionsStart(void); |
||
22 | |||
23 | int SoundOptionsDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
24 | |||
25 | int SoundOptionsLeft(int* pCurrent_choice, int* pCurrent_mode); |
||
26 | |||
27 | int SoundOptionsRight(int* pCurrent_choice, int* pCurrent_mode); |
||
28 | |||
29 | int SoundClick(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
30 | |||
31 | void DoSoundOptions(void); |
||
32 | |||
33 | void GetGraphicsOptions(void); |
||
34 | |||
35 | void SetGraphicsOptions(void); |
||
36 | |||
37 | void PlayRadioOn2(int pIndex, int pValue); |
||
38 | |||
39 | void PlayRadioOff2(int pIndex, int pValue); |
||
40 | |||
41 | void PlayRadioOn__options(int pIndex, int pValue); |
||
42 | |||
43 | void PlayRadioOff__options(int pIndex, int pValue); |
||
44 | |||
45 | void DrawInitialRadios(void); |
||
46 | |||
47 | void RadioChanged(int pIndex, int pNew_value); |
||
48 | |||
49 | int GraphOptLeft(int* pCurrent_choice, int* pCurrent_mode); |
||
50 | |||
51 | int GraphOptRight(int* pCurrent_choice, int* pCurrent_mode); |
||
52 | |||
53 | int GraphOptUp(int* pCurrent_choice, int* pCurrent_mode); |
||
54 | |||
55 | int GraphOptDown(int* pCurrent_choice, int* pCurrent_mode); |
||
56 | |||
57 | int RadioClick(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
58 | |||
59 | int GraphOptGoAhead(int* pCurrent_choice, int* pCurrent_mode); |
||
60 | |||
61 | // Suffix added to avoid duplicate symbol |
||
62 | void PlotAGraphBox__options(int pIndex, int pColour_value); |
||
63 | |||
64 | // Suffix added to avoid duplicate symbol |
||
65 | void DrawAGraphBox__options(int pIndex); |
||
66 | |||
67 | // Suffix added to avoid duplicate symbol |
||
68 | void EraseAGraphBox__options(int pIndex); |
||
69 | |||
70 | void DrawGraphBox(int pCurrent_choice, int pCurrent_mode); |
||
71 | |||
72 | void DoGraphicsOptions(void); |
||
73 | |||
74 | void CalibrateJoysticks(void); |
||
75 | |||
76 | void StripControls(unsigned char* pStr); |
||
77 | |||
78 | void LoadKeyNames(void); |
||
79 | |||
80 | void DisposeKeyNames(void); |
||
81 | |||
82 | void SaveOrigKeyMapping(void); |
||
83 | |||
84 | void GetKeyCoords(int pIndex, int* pY, int* pName_x, int* pKey_x, int* pEnd_box); |
||
85 | |||
86 | void SetKeysToDefault(void); |
||
87 | |||
88 | void SaveKeyMapping(void); |
||
89 | |||
90 | void ChangeKeyMapIndex(int pNew_one); |
||
91 | |||
92 | void DrawKeyAssignments(int pCurrent_choice, int pCurrent_mode); |
||
93 | |||
94 | int KeyAssignLeft(int* pCurrent_choice, int* pCurrent_mode); |
||
95 | |||
96 | int KeyAssignRight(int* pCurrent_choice, int* pCurrent_mode); |
||
97 | |||
98 | int KeyAssignUp(int* pCurrent_choice, int* pCurrent_mode); |
||
99 | |||
100 | int KeyAssignDown(int* pCurrent_choice, int* pCurrent_mode); |
||
101 | |||
102 | int KeyAssignGoAhead(int* pCurrent_choice, int* pCurrent_mode); |
||
103 | |||
104 | int MouseyClickBastard(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
105 | |||
106 | void DrawInitialKMRadios(void); |
||
107 | |||
108 | void DoControlOptions(void); |
||
109 | |||
110 | void LoadSoundOptionsData(void); |
||
111 | |||
112 | void FreeSoundOptionsData(void); |
||
113 | |||
114 | void DrawDisabledOptions(void); |
||
115 | |||
116 | void DoOptions(void); |
||
117 | |||
118 | #endif |