read key code and modifiers back in after event interface call
This commit is contained in:
parent
df1ab1ccae
commit
7167d20f4f
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue