/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
static const char* GetSensorTypeString(SDL_SensorType type)
/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
static const char* GetSensorTypeString(SDL_SensorType type)
{
    static char unknown_type[64];
    switch (type)
    {
    case SDL_SENSOR_INVALID:
        return "SDL_SENSOR_INVALID";
    case SDL_SENSOR_UNKNOWN:
        return "SDL_SENSOR_UNKNOWN";
    case SDL_SENSOR_ACCEL:
        return "SDL_SENSOR_ACCEL";
    case SDL_SENSOR_GYRO:
        return "SDL_SENSOR_GYRO";
    default:
        SDL_snprintf(unknown_type, sizeof(unknown_type), "UNKNOWN (%d)", type);
        return unknown_type;
    }
}