[Bug 2811] Keyboard/Mouse does not work on AGS games

Wine Bugs wine-bugs at winehq.org
Tue Mar 22 12:54:45 CST 2005


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





------- Additional Comments From mteske at imagnos.com  2005-22-03 12:54 -------
Ok, I managed to get keyboard running, too. 
I found out by doing heavy TRACE calls, that the WH_KEYBOARD_LL Hook was never
called. the I saw in the debug log that there are some Acquire/Unacquire calls.
While the mouse stuff then does UnhookWindowsHookEx and SetWindowsHookExW, 
the keyboard stuff did not. 
When I finally put
        keyboard_hook = SetWindowsHookExW( WH_KEYBOARD_LL, KeyboardCallback,
DINPUT_instance, 0 );
at the end of SysKeyboardAImpl_Acquire()
and
        UnhookWindowsHookEx( keyboard_hook );
        keyboard_hook = 0;
at the end of SysKeyboardAImpl_Unacquire() 
it worked!

Any comments?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list