Advertisement

DirectInput mouse handling in Windowed mode

Started by November 29, 1999 09:42 AM
1 comment, last by Stetto 25 years, 1 month 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)
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

Advertisement
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