DirectInput wont release [Solved]

Started by
11 comments, last by jflanglois 18 years, 5 months ago
Typically, when problems such as this arise, the usual suspect is your Window Procedure. If you look at the documentation for WM_NCACTIVATE, you will find the following:
Quote:Return Value

When the wParam parameter is FALSE, an application should return TRUE to indicate that the system should proceed with the default processing, or it should return FALSE to prevent the title bar or icon from being deactivated. When wParam is TRUE, the return value is ignored.

The problem, then, is that you are returning FALSE/0 regardless of the wParam parameter's value. You should be able to always return TRUE without any problem. So:
case WM_NCACTIVATE:{	Input::UnAcquire();	return 0;}// Should be:case WM_NCACTIVATE:{	Input::UnAcquire();	return TRUE;}

[edit] Do note that if you run your application in fullscreen mode, you will have to call ShowCursor( TRUE ); before your asserts, otherwise, you will be limited to using only the keyboard (which is not such a bad thing, mind).


jfl.
Advertisement
That was it :D
Thanks a heap :D
-Skiller
You're welcome ;).


jfl.

This topic is closed to new replies.

Advertisement