1
0
Fork 0

of course I should have known that it would only work in tests *before*

committing, and would instantly break afterwards. Causes endless loops.
Re-uglify. Sorry for the noise.  :-/
This commit is contained in:
mfranz 2005-11-23 12:48:09 +00:00
parent f93bb8eedc
commit a56e35ef74

View file

@ -265,13 +265,19 @@ FGInput::doKey (int k, int modifiers, int x, int y)
b.last_state = 0;
} else {
if (k >= 1 && k <= 26) {
if (_key_bindings[k + '@'].last_state)
doKey(k + '@', KEYMOD_RELEASED, x, y);
if (_key_bindings[k + '`'].last_state)
doKey(k + '`', KEYMOD_RELEASED, x, y);
} else if (k >= 'A' && k <= 'Z') {
if (_key_bindings[k - '@'].last_state)
doKey(k - '@', KEYMOD_RELEASED, x, y);
if (_key_bindings[tolower(k)].last_state)
doKey(tolower(k), KEYMOD_RELEASED, x, y);
} else if (k >= 'a' && k <= 'z') {
if (_key_bindings[k - '`'].last_state)
doKey(k - '`', KEYMOD_RELEASED, x, y);
if (_key_bindings[toupper(k)].last_state)
doKey(toupper(k), KEYMOD_RELEASED, x, y);
}
}