/* Get the instance id for this opened sensor  */
SDL_SensorID SDL_SensorGetInstanceID(SDL_Sensor *sensor)
/* Get the instance id for this opened sensor  */
SDL_SensorID SDL_SensorGetInstanceID(SDL_Sensor *sensor)
{
    if (!SDL_PrivateSensorValid(sensor)) {
        return -1;
    }
    return sensor->instance_id;
}