[Bug 8854] Unable to get keyboard / mouse input in multiple games

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Feb 9 02:42:34 CST 2010


http://bugs.winehq.org/show_bug.cgi?id=8854





--- Comment #48 from Dmitry Timoshkov <dmitry at codeweavers.com>  2010-02-09 02:42:28 ---
Created an attachment (id=26153)
 --> (http://bugs.winehq.org/attachment.cgi?id=26153)
Make sure that key/mouse state is up to date

(In reply to comment #5)
> This hack is invalid. Native does not do that. And there are no need to poll
> input.

The test Julius attached clearly shows the deficiency of such a stance. It
doesn't really matter what native does or does not: due to its architecture
Wine needs to update the thread queue key state directly or indirectly, and
user32 already takes care of this in most of its API implementations.

Attached patch should fix this bug, another solution is to call
GetAsyncKeyState() for each key, but that would be less efficient.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list