]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/input.hxx
add <mod-meta> and <mod-super> XML elements for key bindings
[flightgear.git] / src / Input / input.hxx
index 83527590b4f37c9f78969c536fa8f7c427ad7c19..eef9e243457e90f8962c4993a7c291012893c0a3 100644 (file)
@@ -244,12 +244,6 @@ private:
   };
 
 
-  /**
-   * Initialize key bindings.
-   */
-  void _init_keyboard ();
-
-
   /**
    * Initialize joystick bindings.
    */
@@ -277,8 +271,8 @@ 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 ();
@@ -334,6 +328,19 @@ private:
    * List of currently pressed mouse button events
    */
   std::map<int, std::list<SGSharedPtr<SGPickCallback> > > _activePickCallbacks;
+
+  /**
+   * Key listener interface.
+   */
+  SGPropertyNode_ptr _key_event;
+  int  _key_code;
+  int  _key_modifiers;
+  bool _key_pressed;
+  bool _key_shift;
+  bool _key_ctrl;
+  bool _key_alt;
+  bool _key_meta;
+  bool _key_super;
 };
 
 #endif // _INPUT_HXX