SDL_GetSensorNonPortableType(3)
π NAME π
SDL_GetSensorNonPortableType β bestie, this one hands you the platform dependent type of a sensor. that's it, that's the whole job π«Ά
β¨ SYNOPSIS β¨
okay so here's how you call her:
#include <SDL3/SDL_sensor.h>
int SDL_GetSensorNonPortableType(SDL_Sensor *sensor);
she takes one arg, she gives you back an int. no drama, no fuss π
π FUNCTION PARAMETERS π
sensorβ theSDL_Sensorobject you wanna inspect π like, the one you're side-eyeing. pass it in, let her do her thing.
πΈ RETURN VALUE πΈ
She returns the sensor platform dependent type β slay π«
But babes, listen: if sensor is NULL, you get -1. that's the "bestie there's nothing here" answer, not a type. so check your pointer before you come crying to me π
π¦ AVAILABILITY π¦
This function has been available since SDL 3.2.0 β so if you're on something older, no she's not there, she hasn't been born yet π
Simple Directmedia Layer, SDL 3.4.18 β and that's the whole page, periodt π β¨ go inspect those sensors, you got this, i believe in you fr fr π«Άπ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms