Sign in to follow this  
abort

Dinput

Recommended Posts

abort    122
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.

Share this post


Link to post
Share on other sites
abort    122
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]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this