http://bugs.winehq.org/show_bug.cgi?id=30814
--- Comment #16 from bshalm@broadpark.no 2013-04-21 11:52:22 CDT --- (In reply to comment #14)
(In reply to comment #13)
(In reply to comment #12) In Wine, if I first hold an arrow key, ALT-TAB out, release the arrow key, ALT-TAB back into the game, then GetKeyboardState() will still return the arrow key as pressed (0x80|0x40). This looks a bit weird to me, but perhaps WinAPI is supposed to be that way.
thats correct, WinAPI is supposed to be this way.
But thats no reason to have the same faulty API in wine ;)
Windows behaves different. It will return the key as pressed until 1) I move the mouse over the window 2) I press some key on the keyboard Wine will return the key as pressed until the same key gets a release event.
(In reply to comment #15)
If the bugs occurs in Windows, it is not a wine bug. This bug can be closed as INVALID.
The main bug is definitely in wine. Wine also behaves slightly different as described above.