Thursday, January 26, 2006, 6:32:13 AM, Alexandre Julliard wrote:
Vitaliy Margolen wine-devel@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