more small stuff

This commit is contained in:
AJ Kelly
2011-02-23 19:04:37 -06:00
parent 5bba255711
commit c6e641df29
+1 -2
View File
@@ -16,7 +16,6 @@ Joystick::Joystick() : id( InputDevice_Invalid ),
{ {
} }
bool JoystickDevice::AddLogicalDevice( int usagePage, int usage ) bool JoystickDevice::AddLogicalDevice( int usagePage, int usage )
{ {
if( usagePage != kHIDPage_GenericDesktop ) if( usagePage != kHIDPage_GenericDesktop )
@@ -146,7 +145,7 @@ bool JoystickDevice::InitDevice( int vid, int pid )
{ {
if( vid != 0x0507 || pid != 0x0011 ) if( vid != 0x0507 || pid != 0x0011 )
return true; return true;
// It's a Para controller so try to power it on. // It's a Para controller, so try to power it on.
uint8_t powerOn = 1; uint8_t powerOn = 1;
IOReturn ret = SetReport( kIOHIDReportTypeFeature, 0, &powerOn, 1, 10 ); IOReturn ret = SetReport( kIOHIDReportTypeFeature, 0, &powerOn, 1, 10 );