Fix bug where key releases got reported as presses.
This commit is contained in:
parent
395c9bc638
commit
163d2c5105
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue