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