comment out assert, but this may not be the end
This commit is contained in:
@@ -35,7 +35,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
|||||||
if( usagePage >= kHIDPage_VendorDefinedStart )
|
if( usagePage >= kHIDPage_VendorDefinedStart )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ASSERT(m_Mouse);
|
//ASSERT(m_Mouse);
|
||||||
Mouse& m = m_Mouse;
|
Mouse& m = m_Mouse;
|
||||||
int iMin = 0;
|
int iMin = 0;
|
||||||
int iMax = 0;
|
int iMax = 0;
|
||||||
@@ -91,7 +91,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
|||||||
|
|
||||||
void MouseDevice::Open()
|
void MouseDevice::Open()
|
||||||
{
|
{
|
||||||
//const Mouse& m = m_Mouse;
|
const Mouse& m = m_Mouse;
|
||||||
for( hash_map<IOHIDElementCookie,DeviceButton>::const_iterator i = m_Mapping.begin(); i != m_Mapping.end(); ++i )
|
for( hash_map<IOHIDElementCookie,DeviceButton>::const_iterator i = m_Mapping.begin(); i != m_Mapping.end(); ++i )
|
||||||
AddElementToQueue( i->first );
|
AddElementToQueue( i->first );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user