SDL_HideCursor(3)
β¨ SDL_HideCursor β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, today we're talking about SDL_HideCursor and honestly? it does exactly what it says on the tin π
π NAME π
SDL_HideCursor β hide the cursor. yes. that's it. that's the whole job. she's simple, she's iconic, she ate π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_mouse.h>
bool SDL_HideCursor(void);
no arguments, no drama, just vibes β¨
π RETURN VALUE π
- returns
trueon success π - returns
falseon failure π
and if it fails? call SDL_GetError() for more information, bestie, because she will NOT elaborate on her own. go ask her friend. π
π¦ THREAD SAFETY π¦
lowkey important: this function should only be called on the main thread. do not try to be cute and call it from a worker thread, she does not play like that π
π AVAILABILITY π
this function is available since SDL 3.2.0 β¨ so if you're on something older... yeah. upgrade era. π
β SEE ALSO β
go read those too, they're her sisters and they're all serving cursor-energy π
and that's the page, bestie!! brought to you by the fine folks at Simple Directmedia Layer, running SDL 3.4.18, and it's SDL_HideCursor(3) β mwah, periodt πβ¨π¦
π¦ 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