dinput: Create single thread for mouse and keyboard hook.
commite66e34ef7b5ad61bda09067e6ea8f8990017b5de
authorVitaliy Margolen <wine-patch@kievinfo.com>
Sat, 18 Mar 2006 18:26:37 +0000 (18 11:26 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 21 Mar 2006 10:27:49 +0000 (21 11:27 +0100)
tree3132417a4bc80459af52989c742a40111c2cdcea
parent253a2d089c4bc5d70e24d4193402dc566800dc98
dinput: Create single thread for mouse and keyboard hook.

Put keyboard & mouse hook callbacks into separate thread.
Move few global variables into object. Delete no longer used crit section.
For hooks to work properly hook callback have to be in a thread
with message loop. Some games create separate threads just to handle
mouse and/or keyboard events that do not have message loop.
dlls/dinput/device.c
dlls/dinput/device_private.h
dlls/dinput/keyboard.c
dlls/dinput/mouse.c