easing scope was a no go

This commit is contained in:
AJ Kelly
2011-02-23 19:50:00 -06:00
parent d00b672898
commit b69ccaf0f6
+2 -5
View File
@@ -36,14 +36,12 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
return;
Mouse& m = m_Mouse;
int iMin = 0;
int iMax = 0;
switch( usagePage )
{
case kHIDPage_GenericDesktop:
{ // ease scope
int iMin = 0;
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
int iMax = 0;
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
// based on usage
@@ -68,7 +66,6 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
//LOG->Warn( "Unknown usagePage usage pair: (kHIDPage_GenericDesktop, %d).", usage );
break;
}
}
break;
case kHIDPage_Button:
{