]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/input.hxx
- Added ultra-light traffic is now a separate traffic class that can have its
[flightgear.git] / src / Input / input.hxx
index ca15e458d873a1eb33f0ea7e0e8b1c7f469894ea..a9dd5303f23c5a22025107ceba17944a2629fdcb 100644 (file)
@@ -134,7 +134,7 @@ public:
    * @param x The X position of the mouse event, in screen coordinates.
    * @param y The Y position of the mouse event, in screen coordinates.
    */
-  virtual void doMouseClick (int button, int updown, int x, int y);
+  virtual void doMouseClick (int button, int updown, int x, int y, bool mainWindow, const osgGA::GUIEventAdapter*);
 
 
   /**
@@ -151,12 +151,7 @@ private:
   enum 
   {
     MAX_KEYS = 1024,
-
-  #ifdef WIN32
-    MAX_JOYSTICKS = 2,
-  #else
     MAX_JOYSTICKS = 10,
-  #endif
     MAX_JOYSTICK_AXES = _JS_MAX_AXES,
     MAX_JOYSTICK_BUTTONS = 32,
 
@@ -249,12 +244,6 @@ private:
   };
 
 
-  /**
-   * Initialize key bindings.
-   */
-  void _init_keyboard ();
-
-
   /**
    * Initialize joystick bindings.
    */
@@ -282,9 +271,10 @@ private:
                            const string name);
 
   /**
-   * Initialize nasal parts that had to wait for the nasal to get
-   * functional.
+   * Initialize key bindings, as well as those joystick parts that
+   * depend on a working Nasal subsystem.
    */
+  void _postinit_keyboard ();
   void _postinit_joystick ();
 
   /**
@@ -332,7 +322,7 @@ private:
   /**
    * Nasal module name/namespace.
    */
-  char _module[32];
+  string _module;
 
   /**
    * List of currently pressed mouse button events