]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGJoystickInput.hxx
Fixed minor memory leak on joystick reload.
[flightgear.git] / src / Input / FGJoystickInput.hxx
index a59f9bbe20dc4142e889bc23640b1bc9773a3dec..392fc54b3795fbebbc1bca217631a0e94fd73e9f 100644 (file)
@@ -31,9 +31,8 @@
 
 #include "FGCommonInput.hxx"
 #include "FGButton.hxx"
-#include "FGjs.hxx"
 #include <simgear/structure/subsystem_mgr.hxx>
-
+#include <plib/js.h>
 
 ////////////////////////////////////////////////////////////////////////
 // The Joystick Input Class
@@ -45,6 +44,7 @@ public:
 
   virtual void init();
   virtual void postinit();
+  virtual void reinit();
   virtual void update( double dt );
 
   static const int MAX_JOYSTICKS        = 10;
@@ -52,6 +52,8 @@ public:
   static const int MAX_JOYSTICK_BUTTONS = 32;
 
 private:
+   void _remove();
+
   /**
    * Settings for a single joystick axis.
    */