sdlShowCursor function

int sdlShowCursor(
  1. int toggle
)

Toggle whether or not the cursor is shown.

The cursor starts off displayed but can be turned off. Passing SDL_ENABLE displays the cursor and passing SDL_DISABLE hides it.

The current state of the mouse cursor can be queried by passing SDL_QUERY; either SDL_DISABLE or SDL_ENABLE will be returned.

\param toggle SDL_ENABLE to show the cursor, SDL_DISABLE to hide it, SDL_QUERY to query the current state without changing it. \returns SDL_ENABLE if the cursor is shown, or SDL_DISABLE if the cursor is hidden, or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_CreateCursor \sa SDL_SetCursor

extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle)

Implementation

int sdlShowCursor(int toggle) {
  final sdlShowCursorLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Int32 toggle), int Function(int toggle)>('SDL_ShowCursor');
  return sdlShowCursorLookupFunction(toggle);
}