dinput: Handle multiple keyboard and mouse devices.
Vitaliy Margolen
wine-patches at kievinfo.com
Sat Jun 9 19:38:18 CDT 2007
The whole idea here is to set/release hook only once for all keyboard/mouse
devices. Then if we have more then one device, just call their hook handlers
from the single top level handler. This also removes ugly and not thread
safe "static current_lock".
Should fix bug 7129.
---
dlls/dinput/dinput_main.c | 82 ++++++++++++++++++++++++++++++++++++++---
dlls/dinput/dinput_private.h | 4 ++-
dlls/dinput/keyboard.c | 54 ++++++---------------------
dlls/dinput/mouse.c | 28 ++------------
4 files changed, 95 insertions(+), 73 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6e11bfd0115ac08edc68bc1b5b9ebf9742296c3d.diff
Type: text/x-patch
Size: 12134 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070609/c2de63dd/6e11bfd0115ac08edc68bc1b5b9ebf9742296c3d-0001.bin
More information about the wine-patches
mailing list