Direct Input object created: YES.
Direct Input device created: YES.
Set data format: YES.
Cooperative level: YES.
Acquire: OH YEAH.
I am getting the DI_NOEFFECT return on the unaquire() call (I.e. device was never acquired in the first place) Obviously it was because I'm using it
Only one reason why I can think this is happening.
DISCL_FOREGROUND will automatically cause the program to unacquire the device if the application goes to the background.Code:g_InputDevice->SetCooperativeLevel(hWnd, DISCL_FOREGROUND | DISCL_EXCLUSIVE);
Well.. as far as I know my application isn't going to the background. And even if it is... I'm still getting a crash when shutting down my application.
Everything deallocated fine before dinput was added.. so its either the direct input object or direct input device causing the crash.
Once again the code goes up.. everything needed to compile
Also.. should I not be gathering checking for input all the time.. (i.e. should I put a specific timer on it to only check every second or something? Seems like the constant calls result in a lot of miniscule additions/subtractions for moving objects..