ease scope, in an attempt to dodge a warning
This commit is contained in:
@@ -40,6 +40,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
||||
switch( usagePage )
|
||||
{
|
||||
case kHIDPage_GenericDesktop:
|
||||
{ // ease scope
|
||||
int iMin = 0;
|
||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
||||
int iMax = 0;
|
||||
@@ -67,6 +68,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
||||
//LOG->Warn( "Unknown usagePage usage pair: (kHIDPage_GenericDesktop, %d).", usage );
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case kHIDPage_Button:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user