Create a device of specified type to be associated with a context.
#include <screen/screen.h>
int screen_create_device_type(screen_device_t *pdev, screen_context_t ctx, int type)
A pointer to a screen_device_t where a handle for the new input device can be stored.
The handle of the context in which the input device is to be created. This context must have been created with the context type of SCREEN_INPUT_PROVIDER_CONTEXT using screen_create_context().
The type of input device to be created.
Function Type: Immediate Execution
0 if the input device was created, or -1 if an error occurred (errno is set; refer to /usr/include/errno.h for more details).