Q3Controller_GetValues
You can use theQ3Controller_GetValuesfunction to get the list of values of a controller.
TQ3Status Q3Controller_GetValues ( TQ3ControllerRef controllerRef, unsigned long valueCount, float *values, TQ3Boolean *changed, unsigned long *serialNumber);
controllerRef- A reference to a controller.
valueCount- The number of elements in the array pointed to by the
valuesparameter.values- On entry, a pointer to an array of controller values. The size of the array is determined by the number of elements in the array (as specified by the
valueCountparameter) and the size of a controller value (which is controller-dependent).changed- On exit, a Boolean value that indicates whether the specified array of values was changed (
kQ3True) or not (kQ3False).serialNumber- On entry, a controller serial number, or
NULL.DESCRIPTION
TheQ3Controller_GetValuesfunction returns, in thevaluesparameter, a pointer to an array that contains the current values for the controller specified in thecontrollerRefparameter. ThevalueCountparameter specifies the number of elements in the array (which you must already have allocated).Q3Controller_GetValuesmight fill in fewer elements if the controller does not support the specified number of values.If the value of the
serialNumberparameter isNULL,Q3Controller_GetValuesfills in thevaluesarray and returns the valuekQ3Truein thechangedparameter. Otherwise, the value specified in theserialNumberparameter is compared with the controller's current serial number. If the two serial numbers are identical,Q3Controller_GetValuesleaves thevaluesarray and theserialNumberparameter unchanged and returns the valuekQ3Falsein thechangedparameter. If the two serial number differ,Q3Controller_GetValuesfills in thevaluesarray, updates theserialNumberparameter, and returns the valuekQ3Truein thechangedparameter.If the specified controller is inactive, the
valuesarray and thechangedparameter are unchanged.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help