Nothing returns false.

This commit is contained in:
Steve Checkoway
2006-11-28 17:57:16 +00:00
parent 73832dfafd
commit 0c21055858
4 changed files with 7 additions and 12 deletions
@@ -120,17 +120,17 @@ void JoystickDevice::Open()
AddElementToQueue( j->first );
}
}
bool JoystickDevice::SupportsVidPid( int vid, int pid )
void JoystickDevice::InitDevice( int vid, int pid )
{
if( vid != 0x0507 || pid != 0x0011 )
return true;
return;
// It's a Para controller so try to power it on.
uint8_t powerOn = 1;
IOReturn ret = SetReport( kIOHIDReportTypeFeature, 0, &powerOn, 1, 10 );
if( ret )
LOG->Warn( "Failed to power on the Para controller: %#08x", ret );
return true;
}
void JoystickDevice::GetButtonPresses( vector<DeviceInput>& vPresses, int cookie, int value, const RageTimer& now ) const