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
inDevicesToActivateparameter.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 theinDevicesToActivateparameter and pass in the number of references in the array in theinDeviceCountparameter. The ISpDevices_Deactivate function deactivates the devices. When a device is deactivated, InputSprocket no longer receives events from it.