Rohan George
April 23rd, 2003, 01:49 AM
hI;
I try the following way to enumerate only the plugged gamecontroller devices to the system. But it takes the installed one also.
// enumerating the Game controller devices attached
if (FAILED((hr = m_lpdirin8DirectInput->EnumDevices(DI8DEVCLASS_GAMECTRL, &EnumDevicesCallBkFunc,(LPVOID)this, DIEDFL_ATTACHEDONLY ))))
{
ASSERT(FALSE);
SAFE_RELEASE(m_lpdirin8DirectInput);
}
i have a Microsoftsidewinder forcefeedback wheel and in the controlpanel it is showing the status as OK and not connected alternatively.
What is wrong with this? Can anybody help me?
Thanks,
Rohan.
I try the following way to enumerate only the plugged gamecontroller devices to the system. But it takes the installed one also.
// enumerating the Game controller devices attached
if (FAILED((hr = m_lpdirin8DirectInput->EnumDevices(DI8DEVCLASS_GAMECTRL, &EnumDevicesCallBkFunc,(LPVOID)this, DIEDFL_ATTACHEDONLY ))))
{
ASSERT(FALSE);
SAFE_RELEASE(m_lpdirin8DirectInput);
}
i have a Microsoftsidewinder forcefeedback wheel and in the controlpanel it is showing the status as OK and not connected alternatively.
What is wrong with this? Can anybody help me?
Thanks,
Rohan.