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 β€” the SDL_Sensor object 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