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 )
|
switch( usagePage )
|
||||||
{
|
{
|
||||||
case kHIDPage_GenericDesktop:
|
case kHIDPage_GenericDesktop:
|
||||||
|
{ // ease scope
|
||||||
int iMin = 0;
|
int iMin = 0;
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
||||||
int iMax = 0;
|
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 );
|
//LOG->Warn( "Unknown usagePage usage pair: (kHIDPage_GenericDesktop, %d).", usage );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case kHIDPage_Button:
|
case kHIDPage_Button:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user