sdlCursorVisible function

bool sdlCursorVisible()

Return whether the cursor is currently being shown.

\returns true if the cursor is being shown, or false if the cursor is hidden.

\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;
}