Fix cross initialization error.

This commit is contained in:
Jason Felds
2011-02-23 20:30:00 -05:00
parent f0ce616868
commit 65f3085ca9
+4 -3
View File
@@ -37,13 +37,14 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
ASSERT(m_Mouse);
Mouse& m = m_Mouse;
int iMin = 0;
int iMax = 0;
switch( usagePage )
{
case kHIDPage_GenericDesktop:
int iMin = 0;
iMin = 0;
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMinKey)), iMin );
int iMax = 0;
iMax = 0;
IntValue( CFDictionaryGetValue(properties, CFSTR(kIOHIDElementMaxKey)), iMax );
// based on usage