* Checks to make sure the sensor is valid. */
| 302 | * Checks to make sure the sensor is valid. |
| 303 | */ |
| 304 | static int |
| 305 | SDL_PrivateSensorValid(SDL_Sensor * sensor) |
| 306 | { |
| 307 | int valid; |
| 308 | |
| 309 | if (sensor == NULL) { |
| 310 | SDL_SetError("Sensor hasn't been opened yet"); |
| 311 | valid = 0; |
| 312 | } else { |
| 313 | valid = 1; |
| 314 | } |
| 315 | |
| 316 | return valid; |
| 317 | } |
| 318 | |
| 319 | /* |
| 320 | * Get the friendly name of this sensor |
no test coverage detected