more MouseDevice changes
This commit is contained in:
@@ -35,16 +35,14 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
|||||||
if( usagePage >= kHIDPage_VendorDefinedStart )
|
if( usagePage >= kHIDPage_VendorDefinedStart )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ASSERT(m_Mouse);
|
|
||||||
Mouse& m = m_Mouse;
|
Mouse& m = m_Mouse;
|
||||||
int iMin = 0;
|
|
||||||
int iMax = 0;
|
|
||||||
switch( usagePage )
|
switch( usagePage )
|
||||||
{
|
{
|
||||||
case kHIDPage_GenericDesktop:
|
case kHIDPage_GenericDesktop:
|
||||||
iMin = 0;
|
int iMin = 0;
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
|
||||||
iMax = 0;
|
int iMax = 0;
|
||||||
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
|
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
|
||||||
|
|
||||||
// based on usage
|
// based on usage
|
||||||
|
|||||||
Reference in New Issue
Block a user