]> git.mxchange.org Git - flightgear.git/blobdiff - Controls/controls.h
C++ - ifing the code a bit.
[flightgear.git] / Controls / controls.h
index d5045815aecd7ee4b0a847e0637fb3339e24cab0..2abce93ed4ebddfc953094a1ba7aec7d97fd1efb 100644 (file)
 #define _CONTROLS_H
 
 
-#include "../Include/fg_limits.h"
+#include <Include/fg_limits.h>
+
+
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
 
 
 /* Define a structure containing the control parameters */
 
-struct fgCONTROLS {
+typedef struct {
     double aileron;
     double elevator;
     double elevator_trim;
     double rudder;
     double throttle[FG_MAX_ENGINES];
-};
+} fgCONTROLS, *pfgControls;
 
 
 #define FG_Elevator     c->elevator
@@ -62,6 +67,8 @@ struct fgCONTROLS {
 */
 
 
+extern fgCONTROLS cur_control_params;
+
 void fgControlsInit( void );
 
 void fgElevMove(double amt);
@@ -76,14 +83,32 @@ void fgThrottleMove(int engine, double amt);
 void fgThrottleSet(int engine, double pos);
 
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _CONTROLS_H */
 
 
 /* $Log$
-/* Revision 1.10  1998/01/27 00:47:52  curt
-/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
-/* system and commandline/config file processing code.
+/* Revision 1.14  1998/04/22 13:26:19  curt
+/* C++ - ifing the code a bit.
 /*
+ * Revision 1.13  1998/04/21 17:02:35  curt
+ * Prepairing for C++ integration.
+ *
+ * Revision 1.12  1998/02/09 22:56:48  curt
+ * Removed "depend" files from cvs control.  Other minor make tweaks.
+ *
+ * Revision 1.11  1998/02/07 15:29:36  curt
+ * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
+ * Revision 1.10  1998/01/27 00:47:52  curt
+ * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * system and commandline/config file processing code.
+ *
  * Revision 1.9  1998/01/22 02:59:31  curt
  * Changed #ifdef FILE_H to #ifdef _FILE_H
  *