/* Checks to make sure the sensor is valid.  */
static int SDL_PrivateSensorValid(SDL_Sensor *sensor)
/* Checks to make sure the sensor is valid.  */
static int SDL_PrivateSensorValid(SDL_Sensor *sensor)
{
    int valid;
    if (sensor == NULL) {
        SDL_SetError("Sensor hasn't been opened yet");
        valid = 0;
    } else {
        valid = 1;
    }
    return valid;
}