SDL_CloseJoystick(3)

🌸 SDL_CloseJoystick πŸ’…

okay bestie, so this page is literally all about SDL_CloseJoystick β€” and yes, the manual name and the title are the same thing, that's just how these pages roll, iykyk ✨

πŸŽ€ NAME πŸŽ€

SDL_CloseJoystick β€” close a joystick that you previously opened with SDL_OpenJoystick().

that's it. that's the whole vibe. you opened it, now you're closing it. closure is self-care 🫢


✨ SYNOPSIS ✨

#include <SDL3/SDL_joystick.h>

void SDL_CloseJoystick(SDL_Joystick *joystick);

so you gotta pull in <SDL3/SDL_joystick.h> first, then you can call it. no return value, no drama, it just returns void. periodt πŸ’–


🌈 FUNCTION PARAMETERS 🌈

  • joystick β€” the joystick device to close. like, the actual one you got back from opening it. give it here, we're done with it πŸ‘‹

πŸ¦‹ THREAD SAFETY πŸ¦‹

it is safe to call this function from any thread. no cap, any thread at all, she's flexible like that πŸ’…


⭐ AVAILABILITY ⭐

this function is available since SDL 3.2.0. if you're on something older... bestie, upgrade, respectfully πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

  • SDL_OpenJoystick(3) β€” the one that started it all. you two are a matched set fr fr πŸ”₯

okay that's the whole page, you ate that, go close your joysticks responsibly πŸ‘‘

this little love letter came to you from Simple Directmedia Layer (the icon, the legend) shipping SDL 3.4.18, and yeah the date line said SDL_CloseJoystick(3) too, which is giving very much "we contain multitudes" πŸŽ€βœ¨ bye bestie πŸ’–

πŸ“¦ where this page comes from