Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 18 - QuickDraw 3D Pointing Device Manager / QuickDraw 3D Pointing Device Manager Reference
QuickDraw 3D Pointing Device Manager Routines / Creating and Managing Controllers


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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help