Dinput

Started by
1 comment, last by abort 16 years ago
Hi there, I've made a DLL (which has to be injected) into a game to hook getcursorpos and setcursorpos to direct input. Everything works perfect ingame, though it doesn't register mouse clicks/scrolling anymore, only the cursor is able to move! The mouse click event handling should be still done by win32 events. I think the mouse events don't get passed to win32, so win32 is never able to handle it. Anybody got a clue on this? I tried to hook wh_mouse_ll and wh_getmessage to use callnexthookex (hoping it would pass events towards win32), but that didn't succeed. Thanks in advance.
Advertisement
When your hooking these functions are you passing the values to the real function before returning?
the functions just return the DI values instead of the windows values, so thats shouldn't make a difference... somehow some messages don't get pumped to win32, while i only hooked 2 functions that have nothing to do with mouse clicks and scrolling for example. Isn't this possible with DISCL_EXCLUSIVE?

[Edited by - abort on April 21, 2008 2:09:21 PM]

This topic is closed to new replies.

Advertisement