Use IOHIDElementCookie which is really a void* rather than int.
This commit is contained in:
@@ -27,9 +27,9 @@ void InputHandler_MacOSX_HID::QueueCallBack( void *target, int result, void *ref
|
||||
HIDDevice *dev = This->m_vDevices[int( refcon )];
|
||||
vector<DeviceInput> vPresses;
|
||||
|
||||
LOG->Trace( "Got event with cookie %d, value %d", int(event.elementCookie), int(event.value) );
|
||||
LOG->Trace( "Got event with cookie %p, value %d", event.elementCookie, int(event.value) );
|
||||
while( (result = CALL(queue, getNextEvent, &event, zeroTime, 0)) == kIOReturnSuccess )
|
||||
dev->GetButtonPresses( vPresses, int(event.elementCookie), int(event.value), now );
|
||||
dev->GetButtonPresses( vPresses, event.elementCookie, event.value, now );
|
||||
FOREACH_CONST( DeviceInput, vPresses, i )
|
||||
INPUTFILTER->ButtonPressed( *i );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user