Update of /cvsroot/pure-data/externals/hcs/hid/HID Utilities Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7143
Modified Files: HID_Queue_Utilities.c HID_Utilities.c ImmrHIDUtilAddOn.h Log Message: got things compiling with ImmrHIDUtilAddOn; looks like there is a newer version of HID Utilities which Apple hasn't released yet. The ones in FFB must be part of that newer version since they don't match version 3.7
Index: ImmrHIDUtilAddOn.h =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/HID Utilities Source/ImmrHIDUtilAddOn.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ImmrHIDUtilAddOn.h 10 Jun 2005 03:12:41 -0000 1.1.1.1 --- ImmrHIDUtilAddOn.h 10 Jun 2005 03:43:43 -0000 1.2 *************** *** 8,11 **** */
! extern io_object_t AllocateHIDObjectFromRecDevice( pRecDevice pDevice ); ! extern Boolean FreeHIDObject( io_object_t hidDevice ); \ No newline at end of file --- 8,13 ---- */
! //extern io_object_t AllocateHIDObjectFromRecDevice( pRecDevice pDevice ); ! //extern Boolean FreeHIDObject( io_object_t hidDevice ); ! io_service_t AllocateHIDObjectFromRecDevice( pRecDevice pDevice ); ! bool FreeHIDObject( io_service_t hidDevice );
Index: HID_Utilities.c =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/HID Utilities Source/HID_Utilities.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** HID_Utilities.c 9 Jun 2005 21:42:51 -0000 1.1.1.1 --- HID_Utilities.c 10 Jun 2005 03:43:43 -0000 1.2 *************** *** 100,104 **** pElement->min = 0;
! pElement->calMax = pElement->min; pElement->userMin = kDefaultUserMin;
--- 100,104 ---- pElement->min = 0;
! // pElement->calMax = pElement->min; pElement->userMin = kDefaultUserMin;
*************** *** 109,113 **** pElement->max = 0;
! pElement->calMin = pElement->max; pElement->userMax = kDefaultUserMax;
--- 109,113 ---- pElement->max = 0;
! // pElement->calMin = pElement->max; pElement->userMax = kDefaultUserMax;
*************** *** 1854,1858 **** // returns calibrated value given raw value passed in // calibrated value is equal to min and max values returned by HIDGetElementValue since device list built scaled to element reported min and max values ! SInt32 HIDCalibrateValue (SInt32 value, pRecElement pElement) { --- 1854,1858 ---- // returns calibrated value given raw value passed in // calibrated value is equal to min and max values returned by HIDGetElementValue since device list built scaled to element reported min and max values ! /* SInt32 HIDCalibrateValue (SInt32 value, pRecElement pElement) { *************** *** 1869,1873 **** return 0; // bad element passed in } ! // --------------------------------- // returns scaled value given raw value passed in --- 1869,1873 ---- return 0; // bad element passed in } ! */ // --------------------------------- // returns scaled value given raw value passed in
Index: HID_Queue_Utilities.c =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/HID Utilities Source/HID_Queue_Utilities.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** HID_Queue_Utilities.c 9 Jun 2005 21:42:51 -0000 1.1.1.1 --- HID_Queue_Utilities.c 10 Jun 2005 03:43:43 -0000 1.2 *************** *** 510,518 ****
// record min and max for auto scale and auto ... if (hidEvent.value < pElement->calMin) pElement->calMin = hidEvent.value; if (hidEvent.value > pElement->calMax) pElement->calMax = hidEvent.value; ! // auto user scale return hidEvent.value; --- 510,520 ----
// record min and max for auto scale and auto ... + /* if (hidEvent.value < pElement->calMin) pElement->calMin = hidEvent.value; if (hidEvent.value > pElement->calMax) pElement->calMax = hidEvent.value; ! */ ! // auto user scale return hidEvent.value; *************** *** 548,551 **** --- 550,554 ---- // --------------------------------- // Set a callback to be called when a queue goes from empty to non-empty + /* long HIDSetQueueCallback (pRecDevice pDevice, IOHIDCallbackFunction callback) { *************** *** 583,587 **** return result; } ! #if 1 // --------------------------------- --- 586,590 ---- return result; } ! */ #if 1 // ---------------------------------