Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 3 - InputSprocket / InputSprocket Reference
InputSprocket Functions / Configuring the Application


ISpDevices_Deactivate

You can use the ISpDevices_Deactivate function to deactivate devices from which you do not want to receive events. For example, you might want to get input from the keyboard or mouse as text style data. All devices in the system start out activated.

OSStatus ISpDevices_Deactivate (
	UInt32 inDeviceCount,
	ISpDeviceReference *inDevicesToDeactivate);
inDeviceCount
The number of references in the array pointed to by the inDevicesToActivate parameter.
inDevicesToDeactivate
A pointer to an array of device references.
function result
A result code.
DESCRIPTION
You pass in a pointer to an array of references to the devices to be deactivated in the inDevicesToActivate parameter and pass in the number of references in the array in the inDeviceCount parameter. The ISpDevices_Deactivate function deactivates the devices. When a device is deactivated, InputSprocket no longer receives events from it.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996