]> git.mxchange.org Git - flightgear.git/blobdiff - Main/GLUTkey.cxx
Renamed class fgFLIGHT to class FGState as per request by JSB.
[flightgear.git] / Main / GLUTkey.cxx
index de4e4547bfd46e4487fb65938cd0d32db8409fd3..2a3d41866d39675cea3fd1c21c8f285dc95bc0f0 100644 (file)
@@ -69,14 +69,14 @@ static void local_update_sky_and_lighting_params( void ) {
 
 // Handle keyboard events
 void GLUTkey(unsigned char k, int x, int y) {
-    fgFLIGHT *f;
+    FGState *f;
     fgTIME *t;
     fgVIEW *v;
     struct fgWEATHER *w;
     float fov, tmp;
     static bool winding_ccw = true;
 
-    f = current_aircraft.flight;
+    f = current_aircraft.fdm_state;
     t = &cur_time_params;
     v = &current_view;
     w = &current_weather;
@@ -231,13 +231,13 @@ void GLUTkey(unsigned char k, int x, int y) {
            t->pause = !t->pause;
            // printf position and attitude information
            FG_LOG( FG_INPUT, FG_INFO,
-                   "Lon = " << FG_Longitude * RAD_TO_DEG
-                   << "  Lat = " << FG_Latitude * RAD_TO_DEG
-                   << "  Altitude = " << FG_Altitude * FEET_TO_METER );
+                   "Lon = " << f->get_Longitude() * RAD_TO_DEG
+                   << "  Lat = " << f->get_Latitude() * RAD_TO_DEG
+                   << "  Altitude = " << f->get_Altitude() * FEET_TO_METER );
            FG_LOG( FG_INPUT, FG_INFO,
-                   "Heading = " << FG_Psi * RAD_TO_DEG 
-                   << "  Roll = " << FG_Phi * RAD_TO_DEG
-                   << "  Pitch = " << FG_Theta * RAD_TO_DEG );
+                   "Heading = " << f->get_Psi() * RAD_TO_DEG 
+                   << "  Roll = " << f->get_Phi() * RAD_TO_DEG
+                   << "  Pitch = " << f->get_Theta() * RAD_TO_DEG );
            return;
        case 116: // t key
            t->warp_delta += 30;
@@ -386,6 +386,12 @@ void GLUTspecialkey(int k, int x, int y) {
 
 
 // $Log$
+// Revision 1.34  1998/12/05 15:54:17  curt
+// Renamed class fgFLIGHT to class FGState as per request by JSB.
+//
+// Revision 1.33  1998/12/03 01:17:12  curt
+// Converted fgFLIGHT to a class.
+//
 // Revision 1.32  1998/11/06 21:18:06  curt
 // Converted to new logstream debugging facility.  This allows release
 // builds with no messages at all (and no performance impact) by using