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 π
SDL_CursorVisible(3)β the "is it even visible tho" check πSDL_HideCursor(3)β the opposite slay, for when you want the cursor gone π¨
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
- 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