Destroy a input device and frees associated resources.
#include <screen/screen.h>
int screen_destroy_device(screen_device_t dev)
BlackBerry 10.0.0
The handle of the input device that you want to destroy.
Function Type: Flushing Execution
This function destroys the a input device object associated with the device handle. Any resources created for this input device will be released.
This function is of type flushing execution because if there are any entries in the command buffer that have reference to this device, the entries will be flushed and processed before destroying the device.
0 if the input device was destroyed, or -1 if an error occurred (errno is set).