]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/keyboard.cxx
Return to glider model ...
[flightgear.git] / src / Main / keyboard.cxx
index 58b72be812caaf6f7c3b70433e6413cdd34774b3..b5c7d2d5ac228f3049cce1b5c71eb14761022072 100644 (file)
@@ -1,8 +1,8 @@
-// GLUTkey.cxx -- handle GLUT keyboard events
+// keyboard.cxx -- handle GLUT keyboard events
 //
 // Written by Curtis Olson, started May 1997.
 //
-// Copyright (C) 1997  Curtis L. Olson  - curt@me.umn.edu
+// Copyright (C) 1997 - 1999  Curtis L. Olson  - curt@flightgear.org
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -39,6 +39,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <pu.h>                        // plib include
+
 #include <Debug/logstream.hxx>
 #include <Aircraft/aircraft.hxx>
 #include <Astro/solarsystem.hxx>
 #include <Include/fg_constants.h>
 #include <Scenery/tilemgr.hxx>
 #include <Objects/materialmgr.hxx>
-#include <plib/pu.h>
 #include <Time/fg_time.hxx>
 #include <Time/light.hxx>
 #include <Weather/weather.hxx>
 
-#include "GLUTkey.hxx"
+#include "keyboard.hxx"
 #include "options.hxx"
 #include "views.hxx"
 
@@ -276,7 +277,10 @@ void GLUTkey(unsigned char k, int x, int y) {
            t->adjust_warp_delta (+30);
            local_update_sky_and_lighting_params();
            return;
-       case 120: // X key
+       case 118: // v key
+           v->cycle_view_mode();
+           return;
+       case 120: // x key
            fov = current_options.get_fov();
            fov /= 1.05;
            if ( fov < FG_FOV_MIN ) {