Retrieves all pens that are connected to the system.
Defined in <SDL3/SDL_pen.h>
count | The number of pens in the array (number of array elements minus 1, i.e., not counting the terminator 0). |
Returns A 0 terminated array of SDL_PenID values, or NULL on error. The array must be freed with SDL_free(). On a NULL return, SDL_GetError() is set.
Yields an array of SDL_PenID values. These identify and track pens throughout a session. To track pens across sessions (program restart), use SDL_GUID .
This function is available since SDL 3.0.0.