SDL_GetSensorType(3)
π SDL_GetSensorType(3) π
okay so bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_GetSensorType β the little glow-up that tells you what kind of sensor you're holding. no cap, it's a short one, but it's iconic. π
β¨ NAME β¨
SDL_GetSensorType β get the type of a sensor. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_sensor.h>
SDL_SensorType SDL_GetSensorType(SDL_Sensor *sensor);
look at her. one include, one function, zero drama. π¦
π«Ά FUNCTION PARAMETERS π«Ά
sensorβ theSDL_Sensorobject you want to inspect. like, hand her over and she'll tell you what she is. π
β RETURN VALUE β
she returns the SDL_SensorType type β the actual vibe classification of your sensor. π
but if sensor is NULL? yeah, she's not gonna guess. you get SDL_SENSOR_INVALID back. not me handing her nothing and expecting answers π
fr fr, pass a realSDL_Sensoror you're gettingSDL_SENSOR_INVALID. no in-between.
π AVAILABILITY π
this function has been serving since SDL 3.2.0. so if your SDL is older than that... bestie, it's giving "please update". π
and that's the whole page, you ate that. mwah π
this little gem comes to you courtesy of Simple Directmedia Layer, rockin' SDL 3.4.18 β stay sensor-y, bestie, and go read some more manpages, iykyk π§β¨π
π¦ 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