Wiki Page Content

Revision 3 as of 2010-08-28 23:54:33

Clear message

DRAFT

SDL_ShowCursor

Use this function to toggle whether or not the cursor is shown.

Syntax

int SDL_ShowCursor(int toggle)

Function Parameters

toggle

1 to show the cursor, 0 to hide it, -1 to query the current state

Return Value

Returns 1 if the cursor is shown, or 0 if the cursor is hidden, green

.

Code Examples

You can add your code example here

Remarks

*
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.
*

green


CategoryAPI, CategoryMouse

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit