Jump to content
  • Advertisement
Sign in to follow this  
abort

Dinput

This topic is 3713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!