|
-
April 23rd, 2003, 01:49 AM
#1
How to enumerate attached gemecontroller devices
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|