DirectInput not Enabled.
by Neil Marshall · in Torque Game Engine · 03/03/2006 (1:36 pm) · 1 replies
What would be the reason for this happening?
In winDirectInput.cc DInputManager::enable() the line
Is returning false. Why would this be?
Other TGE apps that I have pick it up just fine. I have DirectX 9 installed and all my drivers are up to date. The only thing that I can think of that is different with this project as opposed to the others is my main.cs and data directories are not in the same directory as the executable. I change the WorkingDirectory to the place with all the data files before the program starts to do anything. Would that somehow cause it?
... Math Init: Installing Standard C extensions Installing Assembly extensions Installing FPU extensions Installing MMX extensions Installing SSE extensions Input Init: [b]DirectInput not enabled.[/b] Initializing chunk mappings... ...
In winDirectInput.cc DInputManager::enable() the line
bool result = SUCCEEDED( fnDInputCreate( winState.appInstance, DIRECTINPUT_VERSION, IID_IDirectInput8, reinterpret_cast<void**>(&mDInputInterface), NULL ));
Is returning false. Why would this be?
Other TGE apps that I have pick it up just fine. I have DirectX 9 installed and all my drivers are up to date. The only thing that I can think of that is different with this project as opposed to the others is my main.cs and data directories are not in the same directory as the executable. I change the WorkingDirectory to the place with all the data files before the program starts to do anything. Would that somehow cause it?
Torque Owner Neil Marshall
HINSTANCE instance = GetModuleHandle(NULL);
fixed it.