sdlGetCursor function

Pointer<SdlCursor> sdlGetCursor()

Get the active cursor.

This function returns a pointer to the current cursor which is owned by the library. It is not necessary to free the cursor with SDL_FreeCursor().

\returns the active cursor or NULL if there is no mouse.

\since This function is available since SDL 2.0.0.

\sa SDL_SetCursor

extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void)

Implementation

Pointer<SdlCursor> sdlGetCursor() {
  final sdlGetCursorLookupFunction = libSdl2.lookupFunction<
      Pointer<SdlCursor> Function(),
      Pointer<SdlCursor> Function()>('SDL_GetCursor');
  return sdlGetCursorLookupFunction();
}