Please don't apply this patch. I will need to change few more things that will affect parts of this patch.

Vitaliy.

Vitaliy Margolen wrote:
Please use this one instead. The other patch had accidentally escaped debug
statements.

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 +-----
4 files changed, 156 insertions(+), 163 deletions(-)


------------------------------------------------------------------------





Reply via email to