🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

DirectInput mouse handling in Windowed mode

Started by
1 comment, last by Stetto 24 years, 7 months ago
Might be a problem with the Acquire/Unacqire commands. You should check 'em.
(btw. the Scrawl-Example that comes with the DX-SDK shows this very well)
Advertisement
I am working on a DirectX app that uses DInput for handling the mouse. The app can be toggled from fullscreen to windowed mode. In fullscreen mode, I'm not having any problems. However, I can't seen to get the desired behavior when I run it in windowed mode.

I want the app to behave like a standard window for things like clicking on another window to make that window active, clicking on the title area to drag the window, etc. But, when the mouse is over my app's client area, I need the mouse to be handled by my DInput routines.

Any help on this topic is appreciated.

Avi Stetto

The problem with the Scrawl example is that when Scrawl is active, the mouse is constrained to the client area; the mouse can't move outside of the Scrawl window. This may be the way I have to write my app, but it's not ideal.

Any other ideas?

Stetto

This topic is closed to new replies.

Advertisement