Get the device type for a ControllerImage_Device object.
Defined in <controllerimage.h>
const char * ControllerImage_GetDeviceType(ControllerImage_Device *device);| ControllerImage_Device * | device | the device object to query. |
(const char *) Returns a NULL-terminated ASCII string, or NULL on error; call SDL_GetError() for details.
Device types are short, ASCII strings that describe the controller. The strings are derived from the artset name, not anything that SDL produces.
Some examples strings this function might return are "xbox360", "ps5", "joyconpair", "ouya".
Generally speaking, this is not intended to be used to identify controllers; SDL3 has more robust facilities for this task, and this might be giving a best guess to controller type anyhow. All this tells you is what artset was chosen.
This function is not thread safe.
This function is available since ControllerImage 1.0.0.