[PATCH 4/6] dinput: Handle multiple keyboard and mouse devices.

Vitaliy Margolen wine-patches at kievinfo.com
Sat Jul 7 00:36:30 CDT 2007


Should fix bug 7129.

The idea is to use one common hook handler for keyboard and mouse.
Then send the received hook event to all acquired devices that have an
even handler, regardless of how many are active. Event handlers need
distinguish their type of the event.
---
 dlls/dinput/device_private.h |    1 +
 dlls/dinput/dinput_main.c    |   89 ++++++++++++++++++++++++++++++------------
 dlls/dinput/dinput_private.h |    1 +
 dlls/dinput/keyboard.c       |   38 ++++--------------
 dlls/dinput/mouse.c          |   25 ++----------
 5 files changed, 79 insertions(+), 75 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c0cac2c24b1ec2707277fe15378de48018c422b4.diff
Type: text/x-patch
Size: 12106 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070706/7578fc22/c0cac2c24b1ec2707277fe15378de48018c422b4.bin


More information about the wine-patches mailing list