]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/FGManipulator.hxx
make isatty() available for stdout/stderr (hope it works on MS Windows)
[flightgear.git] / src / Main / FGManipulator.hxx
index 7e39fe855759c12dedf836e922480bb08bad01ac..cc1c5f5525fc91e33ade14a81fadb2c276d3885b 100644 (file)
@@ -8,6 +8,8 @@
 
 #include "fg_os.hxx"
 
+namespace flightgear
+{
 class FGManipulator : public osgGA::MatrixManipulator {
 public:
     FGManipulator();
@@ -131,9 +133,7 @@ protected:
     osg::ref_ptr<osgGA::GUIEventAdapter> statsEvent;
     int statsType;
     int currentModifiers;
-#if 0
     std::map<int, int> numlockKeyMap;
-#endif
     osg::Vec3d position;
     osg::Quat attitude;
     void handleKey(const osgGA::GUIEventAdapter& ea, int& key, int& modifiers);
@@ -144,4 +144,9 @@ protected:
     int release_keys[128];
     void handleStats(osgGA::GUIActionAdapter& us);
 };
+
+void eventToWindowCoords(const osgGA::GUIEventAdapter* ea, double& x, double& y);
+void eventToWindowCoordsYDown(const osgGA::GUIEventAdapter* ea,
+                              double& x, double& y);
+}
 #endif