easing scope was a no go
This commit is contained in:
@@ -36,14 +36,12 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Mouse& m = m_Mouse;
|
Mouse& m = m_Mouse;
|
||||||
|
int iMin = 0;
|
||||||
|
int iMax = 0;
|
||||||
switch( usagePage )
|
switch( usagePage )
|
||||||
{
|
{
|
||||||
case kHIDPage_GenericDesktop:
|
case kHIDPage_GenericDesktop:
|
||||||
{ // ease scope
|
|
||||||
int iMin = 0;
|
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
||||||
int iMax = 0;
|
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
|
||||||
|
|
||||||
// based on usage
|
// 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 );
|
//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