]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/native_ctrls.hxx
Add generic input support
[flightgear.git] / src / Network / native_ctrls.hxx
index db47daff388ea58f136cc4096f9cf0d264cc7991..82a995aa45180040cf81ae8e46a5ccfd5a8b0659 100644 (file)
 #include <Controls/controls.hxx>
 
 #include "protocol.hxx"
-#include "raw_ctrls.hxx"
+#include "net_ctrls.hxx"
 
 SG_USING_STD(string);
 
 
 class FGNativeCtrls : public FGProtocol {
 
-    FGRawCtrls raw_ctrls;
+    FGNetCtrls net_ctrls;
     FGControls ctrls;
 
     int length;
@@ -60,6 +60,17 @@ public:
 };
 
 
+// Helper functions which may be useful outside this class
+
+// Populate the FGNetCtrls structure from the property tree.
+void FGProps2NetCtrls( FGNetCtrls *net, bool honor_freezes,
+                       bool net_byte_order );
+
+// Update the property tree from the FGNetCtrls structure.
+void FGNetCtrls2Props( FGNetCtrls *net, bool honor_freezes,
+                       bool net_byte_order );
+
+
 #endif // _FG_NATIVE_CTRLS_HXX