easing scope was a no go
This commit is contained in:
@@ -36,38 +36,35 @@ 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
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
||||||
int iMin = 0;
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
|
||||||
int iMax = 0;
|
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
|
|
||||||
|
|
||||||
// based on usage
|
// based on usage
|
||||||
switch( usage )
|
switch( usage )
|
||||||
{
|
{
|
||||||
case kHIDUsage_GD_X:
|
case kHIDUsage_GD_X:
|
||||||
m.x_axis = cookie;
|
m.x_axis = cookie;
|
||||||
m.x_min = iMin;
|
m.x_min = iMin;
|
||||||
m.x_max = iMax;
|
m.x_max = iMax;
|
||||||
break;
|
break;
|
||||||
case kHIDUsage_GD_Y:
|
case kHIDUsage_GD_Y:
|
||||||
m.y_axis = cookie;
|
m.y_axis = cookie;
|
||||||
m.y_min = iMin;
|
m.y_min = iMin;
|
||||||
m.y_max = iMax;
|
m.y_max = iMax;
|
||||||
break;
|
break;
|
||||||
case kHIDUsage_GD_Z:
|
case kHIDUsage_GD_Z:
|
||||||
m.z_axis = cookie;
|
m.z_axis = cookie;
|
||||||
m.z_min = iMin;
|
m.z_min = iMin;
|
||||||
m.z_max = iMax;
|
m.z_max = iMax;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//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