]> git.mxchange.org Git - flightgear.git/commitdiff
read key code and modifiers back in after event interface call
authormfranz <mfranz>
Sat, 1 Dec 2007 23:37:58 +0000 (23:37 +0000)
committermfranz <mfranz>
Sat, 1 Dec 2007 23:37:58 +0000 (23:37 +0000)
src/Input/input.cxx

index d150dd93eb40aa5f7e95b9bc515e7ca078308bb3..1bf4b962aa143445e076ac1e333c14ded9e3d5b7 100644 (file)
@@ -251,6 +251,8 @@ FGInput::doKey (int k, int modifiers, int x, int y)
   if (!_key_code)
     return;
 
+  k = _key_code;
+  modifiers = _key_modifiers | (_key_pressed ? KEYMOD_NONE : KEYMOD_RELEASED);
   button &b = _key_bindings[k];
 
                                 // Key pressed.