1
0
Fork 0

read key code and modifiers back in after event interface call

This commit is contained in:
mfranz 2007-12-01 23:37:58 +00:00
parent df1ab1ccae
commit 7167d20f4f

View 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.