SDL_CursorVisible(3)
β¨ SDL_CursorVisible(3) β¨
okay bestie, so this is a page from the SDL3 FUNCTIONS collection, and today's main character is SDL_CursorVisible π
π NAME π
SDL_CursorVisible β the lil function that tells you whether the cursor is currently being shown. that's it. that's the whole vibe check. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_mouse.h>
bool SDL_CursorVisible(void);
yes bestie, that's genuinely all of it. no args, no drama, just a question and a yes/no answer. iconic behavior honestly. π¦
π RETURN VALUE π
- returns
trueif the cursor is being shown π«Ά - returns
falseif the cursor is hidden π
likeβ¦ it literally just reports back. no hidden agendas, no side quests. it's giving "tell me the truth and nothing but the truth". β¨
π₯ THREAD SAFETY π₯
bestie. listen. this one is a main thread only situation, no cap.
This function should only be called on the main thread. don't be out here calling it from some random worker thread thinking you're slick, because that is not the move. main character energy belongs on the main thread, periodt. π
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something olderβ¦ nope, not for you, sorry girl. π
π SEE ALSO π
SDL_HideCursor(3)β for when you want the cursor GONE β¨SDL_ShowCursor(3)β for when you want it back π
okay that's the whole page!! go check on your cursor bestie, she's waiting π
mwah π this was Simple Directmedia Layer, SDL 3.4.18, and the date on this lil masterpiece is the SDL_CursorVisible(3) line β so yeah, that's the era we're in. love that for us. slay, bye!! π¦πΈ
π¦ 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