sdlCursorVisible function
Return whether the cursor is currently being shown.
\returns true
if the cursor is being shown, or false
if the cursor is
hidden.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_HideCursor \sa SDL_ShowCursor
extern SDL_DECLSPEC bool SDLCALL SDL_CursorVisible(void)
Implementation
bool sdlCursorVisible() {
final sdlCursorVisibleLookupFunction = libSdl3
.lookupFunction<Uint8 Function(), int Function()>('SDL_CursorVisible');
return sdlCursorVisibleLookupFunction() == 1;
}