]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/keyboard.cxx
Fixed a problem with autodetecting if we need to draw our own mouse cursor
[flightgear.git] / src / Main / keyboard.cxx
index d403116a640d7070dca0c4197320f707ba299d4a..faf28ecdef80d1ccafca55f9b38c935ef4977d31 100644 (file)
@@ -71,7 +71,7 @@
 #include "globals.hxx"
 #include "keyboard.hxx"
 #include "fg_props.hxx"
-
+#include "options.hxx"
                                // From main.cxx
 extern void fgReshape( int width, int height );
 
@@ -108,8 +108,8 @@ void GLUTkey(unsigned char k, int x, int y) {
                );
            return;
        case 8: // Ctrl-H key
-           current_autopilot->set_HeadingMode( 
-                  FGAutopilot::FG_HEADING_LOCK );
+           current_autopilot->set_HeadingMode(
+                 FGAutopilot::FG_DG_HEADING_LOCK );
            current_autopilot->set_HeadingEnabled(
                  ! current_autopilot->get_HeadingEnabled()
                );
@@ -559,7 +559,7 @@ void GLUTspecialkey(int k, int x, int y) {
                current_autopilot->set_HeadingEnabled( true );
            } else {
                current_autopilot->set_HeadingMode(
-                   FGAutopilot::FG_HEADING_LOCK );
+                   FGAutopilot::FG_DG_HEADING_LOCK );
            }
            return;
        case GLUT_KEY_F8: {// F8 toggles fog ... off fastest nicest...