Global hooks problems (WH_MOUSE_LL)
Vitaliy Margolen
wine-devel at kievinfo.com
Thu Jan 26 09:04:49 CST 2006
Thursday, January 26, 2006, 6:32:13 AM, Alexandre Julliard wrote:
> Vitaliy Margolen <wine-devel at kievinfo.com> writes:
>> Trying to track down the problem with our DInput implementation I found
>> some interesting stuff - our global hooks don't work correctly because
>> hook callbacks are never called if event is generated in the different
>> thread. I don't think this is a revelation to number of people who knew
>> that before. But how do we fix it?
> That's because the new win event code changed the meaning of the
> thread field, and the low-level hooks haven't been updated for it. Try
> something like this:
It does work thank you. The only question I have : does that cover
WINEVENT_OUTOFCONTEXT hooks too?
I'm working on a test to test hooks. Hopefully there will be a way to
test it.
And it looks like we will have to rethink our DInput - the game still
doesn't work. It seems that the thread which acquired mouse doesn't
have a message loop.
Vitaliy
More information about the wine-devel
mailing list