]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGMouseInput.cxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / Input / FGMouseInput.cxx
index c0b7e3f87620169f7b43131d094f24ae109a74af..16bb7883e8a833cae35fb762dba12647ceecd46c 100644 (file)
@@ -25,7 +25,7 @@
 #include "FGMouseInput.hxx"
 
 \f
-void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea ) 
+void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea )
 {
   // Get the list of hit callbacks. Take the first callback that
   // accepts the mouse button press and ignore the rest of them
@@ -44,7 +44,7 @@ void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea )
   }
 }
 
-void ActivePickCallbacks::update( double dt ) 
+void ActivePickCallbacks::update( double dt )
 {
   // handle repeatable mouse press events
   for( iterator mi = begin(); mi != end(); ++mi ) {
@@ -202,6 +202,7 @@ FGMouseInput::mouse::mouse ()
     save_y(-1),
     nModes(1),
     current_mode(0),
+    timeout(0),
     modes(NULL)
 {
 }