SDL_CloseSensor(3)

πŸ’– SDL_CloseSensor(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we close sensors like we close tabs we're never gonna read again. this one's short and sweet and honestly kinda iconic for it ✨


🌸 NAME 🌸

SDL_CloseSensor β€” bestie, it closes a sensor that you previously opened with SDL_OpenSensor(). that's the whole gig. no cap. πŸŽ€


✨ SYNOPSIS ✨

#include <SDL3/SDL_sensor.h>

void SDL_CloseSensor(SDL_Sensor *sensor);

it's giving very "short function, big responsibility" fr fr πŸ’…


🫢 FUNCTION PARAMETERS 🫢

  • sensor β€” the SDL_Sensor object you wanna close. hand it over, let it go, say your goodbyes πŸ¦‹

🌈 AVAILABILITY 🌈

this function has been available since SDL 3.2.0. so if you're on anything older, lowkey you're out of luck πŸ™ˆ


reminder bestie: only close sensors you actually opened with SDL_OpenSensor(). this page does not say what happens otherwise, and we are not out here inventing lore πŸ‘‘

and that's the whole page, periodt πŸ’œ

Simple Directmedia Layer made this one, it's chillin' in SDL 3.4.18, and the whole thing is filed under SDL_CloseSensor(3) β€” mwah, take care of your sensors bestie, love u, bye πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from