18 Creating and Managing Controllers

18 Q3Controller_SetChannel

You can use the Q3Controller_SetChannel function to set a controller channel.

TQ3Status Q3Controller_SetChannel (
TQ3ControllerRef controllerRef, 
unsigned long channel, 
const 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_New was called.
data On entry, a pointer to a buffer that contains the desired value of the specified controller channel. The data type of the channel is controller-specific. If this field contains the value NULL, the specified channel is reset to a default or inactive value.
dataSize On entry, the number of bytes of data in the specified buffer.

DESCRIPTION


The Q3Controller_SetChannel function sets the controller channel specified by the controllerRef and channel parameters to the data whose address is passed in the data parameter. The dataSize parameter specifies the number of bytes in the data buffer.

DESCRIPTION

3D Graphics Programming with QuickDraw 3D - 21 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker