]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/mouse.cxx
Added static port system and a new altimeter model connected to it.
[flightgear.git] / src / GUI / mouse.cxx
index 9e6fc7b26d5ba5478b56daddbe22caeb10f59f5e..71bb00e19bcef5905753ddf63c2d6a18dc07ba7d 100644 (file)
@@ -175,7 +175,7 @@ static inline int right_button( void ) {
 
 static inline void set_goal_view_offset( float offset )
 {
-       globals->get_current_view()->set_goal_view_offset(offset * SGD_RADIANS_TO_DEGREES);
+       globals->get_current_view()->setGoalHeadingOffset_deg(offset * SGD_RADIANS_TO_DEGREES);
 }
 
 static inline void set_view_offset( float offset )
@@ -185,7 +185,7 @@ static inline void set_view_offset( float offset )
 
 static inline void set_goal_view_tilt( float tilt )
 {
-       globals->get_current_view()->set_goal_view_tilt(tilt);
+       globals->get_current_view()->setGoalPitchOffset_deg(tilt);
 }
 
 static inline void set_view_tilt( float tilt )
@@ -198,7 +198,7 @@ static inline float get_view_offset() {
 }
 
 static inline float get_goal_view_offset() {
-       return globals->get_current_view()->get_goal_view_offset() * SGD_DEGREES_TO_RADIANS;
+       return globals->get_current_view()->getGoalHeadingOffset_deg() * SGD_DEGREES_TO_RADIANS;
 }
 
 static inline void move_brake(float offset) {
@@ -518,9 +518,6 @@ void guiMouseFunc(int button, int updown, int x, int y)
     static float _quat[4];
     static double _view_offset;
     
-    // general purpose variables
-    double offset;
-            
     glutModifiers = glutGetModifiers();
     glut_active_shift = glutModifiers & GLUT_ACTIVE_SHIFT;
     glut_active_ctrl  = glutModifiers & GLUT_ACTIVE_CTRL; 
@@ -665,3 +662,4 @@ void guiMouseFunc(int button, int updown, int x, int y)
 
 
 
+