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-861f7616d084master
parent
5b2eabf0b5
commit
1fc98725c8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue