dinput: Handle multiple keyboard and mouse devices. Get rid of the message window.

Vitaliy Margolen wine-patches at kievinfo.com
Sat Jun 16 20:57:32 CDT 2007


Fixes bug 7129.

The whole idea here is to set/release hook only once for keyboard/mouse.
Then if we have more then one device, just call their hook handlers from the single
top level handler.

Also, since we don't really check the return status from setting the hook itself
get rid of the message window. Just notify the thread it needs to recheck device
lists and set/remove hooks.
---
 dlls/dinput/dinput_main.c    |  234 +++++++++++++++++++++++++-----------------
 dlls/dinput/dinput_private.h |    3 +-
 dlls/dinput/keyboard.c       |   54 ++--------
 dlls/dinput/mouse.c          |   28 +-----
 dlls/winex11.drv/event.c     |    3 +-
 5 files changed, 158 insertions(+), 164 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e02b4b549bb7aef23e0c13771156d29f13b7fa4e.diff
Type: text/x-patch
Size: 18158 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070616/201aff9f/e02b4b549bb7aef23e0c13771156d29f13b7fa4e-0001.bin


More information about the wine-patches mailing list