sdlGetDefaultCursor function mouse

Pointer<SdlCursor> sdlGetDefaultCursor()

Get the default cursor.

You do not have to call SDL_DestroyCursor() on the return value, but it is safe to do so.

\returns the default cursor on success or NULL on failuree; call SDL_GetError() for more information.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC SDL_Cursor * SDLCALL SDL_GetDefaultCursor(void)

Implementation

Pointer<SdlCursor> sdlGetDefaultCursor() {
  final sdlGetDefaultCursorLookupFunction = _libSdl
      .lookupFunction<
        Pointer<SdlCursor> Function(),
        Pointer<SdlCursor> Function()
      >('SDL_GetDefaultCursor');
  return sdlGetDefaultCursorLookupFunction();
}