Module: wine Branch: refs/heads/master Commit: e66e34ef7b5ad61bda09067e6ea8f8990017b5de URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e66e34ef7b5ad61bda09067e...
Author: Vitaliy Margolen wine-patch@kievinfo.com Date: Sat Mar 18 11:26:37 2006 -0700
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 | 138 ++++++++++++++++++++++++++++++++++++++++++ dlls/dinput/device_private.h | 2 + dlls/dinput/keyboard.c | 130 +++++++++++++++------------------------- dlls/dinput/mouse.c | 33 +++------- 4 files changed, 201 insertions(+), 102 deletions(-)
Diff: http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=e66e34ef7b5ad61bda09...