frontport r7797

"In inputLooseFocus(), we clear the keyboard/mouse to the init state (KEY_UP).

fixes ticket:515 "

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8750 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-12-19 01:44:53 +00:00 committed by Git SVN Gateway
parent 5b2eabf0b5
commit 1fc98725c8
1 changed files with 2 additions and 2 deletions

View File

@ -440,11 +440,11 @@ void inputLooseFocus(void)
/* Lost the window focus, have to take this as a global key up */
for(i = 0; i < KEY_MAXSCAN; i++)
{
aKeyState[i].state = KEY_RELEASED;
aKeyState[i].state = KEY_UP;
}
for (i = 0; i < 6; i++)
{
aMouseState[i].state = KEY_RELEASED;
aMouseState[i].state = KEY_UP;
}
}