1
0
Fork 0

Fix bug where key releases got reported as presses.

This commit is contained in:
andy 2004-04-06 21:55:49 +00:00
parent 395c9bc638
commit 163d2c5105

View file

@ -137,6 +137,7 @@ static void handleKey(int key, int keyup)
}
if(keyup) CurrentModifiers &= ~modmask;
else CurrentModifiers |= modmask;
if(keyup) CurrentModifiers |= KEYMOD_RELEASED;
if(modmask == 0 && KeyHandler)
(*KeyHandler)(key, CurrentModifiers, CurrentMouseX, CurrentMouseY);
}