SDL_ShowCursor(3)

✨ SDL_ShowCursor ✨

okay bestie, welcome to the SDL_ShowCursor(3) page, part of the SDL3 FUNCTIONS collection πŸŽ€ this one is literally about making the cursor show up again, and it's giving "where did my little arrow go" energy fr fr πŸ’…


🌸 NAME 🌸

SDL_ShowCursor β€” Show the cursor. πŸ–±οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_mouse.h>

bool SDL_ShowCursor(void);

no cap, that's the whole signature. she takes no arguments, she returns a bool, she's lowkey iconic like that 😌


πŸ’– RETURN VALUE πŸ’–

Returns true on success or false on failure 🫢 and if it fails, bestie, call SDL_GetError() for more information. don't just sit there wondering, the error message is right there waiting for you πŸ’€


🧚 THREAD SAFETY 🧚

⚠️ This function should only be called on the main thread. periodt. do not try to be cute and call it from some random worker thread, that's not the vibe πŸ™ˆ

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0 πŸ’œ so if you're on something older, sorry babe, it's not gonna be there.


🌈 SEE ALSO 🌈


Simple Directmedia Layer Β· SDL 3.4.18 Β· page SDL_ShowCursor(3) β€” mwah, thanks for reading bestie, go show that cursor its main character moment πŸ–±οΈπŸ‘‘πŸ’–

πŸ“¦ where this page comes from