Q3Controller_GetChannel
You can use theQ3Controller_GetChannelfunction to get a controller channel.
TQ3Status Q3Controller_GetChannel ( TQ3ControllerRef controllerRef, unsigned long channel, void *data, unsigned long *dataSize);
controllerRef- A reference to a controller.
channel- An index into the list of channels associated with the specified controller. This value is always greater than or equal to 0 and less than the channel count specified at the time
Q3Controller_Newwas called.data- On exit, a pointer to the current value of the specified controller channel. The data type of the returned channel is controller-specific.
dataSize- On entry, the number of bytes in the specified buffer. On exit, the number of bytes actually written to that buffer.
DESCRIPTION
TheQ3Controller_GetChannelfunction returns, through thedataparameter, the current controller channel specified by thecontrollerRefandchannelparameters. You are responsible for allocating memory for the data buffer and passing the size of that buffer in thedataSizeparameter.Q3Controller_GetChannelreturns, in thedataSizeparameter, the number of bytes written to the data buffer.