DirectInput & Debugging
I have DirectInput take over the keyboard and mouse, but then when I attempt to debug I cannot type, as my game still has control of the keyboard. I tried setting the cooperative mode to non-exclusive, but then I do not seem to get any input from the keyboard whatsoever! I have a message handler for the WM_ACTIVATE message which unacquires the keyboard and mouse, but I guess that message isn''t sent when the program hits a breakpoint, because I still have no keyboard control.
I am using MSVC++5 /w the DirectX 7 SDK. The SetCooperativeLevel call in my in_initDevice function is this :
hr = deviceArray[idx]->data->SetCooperativeLevel (sys_mainWnd,
DISCL_FOREGROUND / DISCL_NONEXCLUSIVE / DISCL_NOWINKEY);
( The deviceArray[idx]->data does point to an IDirectInputDevice7 object ).
Please, help!
- Torin
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement