コード例 #1
0
ファイル: IOHIDDevice_.c プロジェクト: Leonan8995/Xenomia
IOHIDQueueRef IOHIDDevice_GetQueue(IOHIDDeviceRef inIOHIDDeviceRef) {
	IOHIDQueueRef result = 0;
	(void) IOHIDDevice_GetPtrProperty(inIOHIDDeviceRef, CFSTR(kIOHIDDevice_QueueKey), (void *) &result);
	if ( result ) {
		assert( IOHIDQueueGetTypeID() == CFGetTypeID(result) );
	}
	
	return (result);
} // IOHIDDevice_GetQueue
コード例 #2
0
IOHIDTransactionRef IOHIDDevice_GetTransaction(IOHIDDeviceRef inIOHIDDeviceRef) {
	IOHIDTransactionRef result = 0;

	(void) IOHIDDevice_GetPtrProperty(inIOHIDDeviceRef, CFSTR(kIOHIDDevice_TransactionKey), (void *) &result);
	return (result);
} // IOHIDDevice_GetTransaction