Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-08-13 04:10:33
Size: 803
Editor: SheenaSmith
Comment: update content - changeset 4465
Revision 3 as of 2010-08-28 23:54:33
Size: 1190
Editor: SheenaSmith
Comment: update content (old wiki)
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
1 if the cursor is shown, or 0 if the cursor is hidden, <<Color2(green, or a negative error code on failure; call [[SDL_GetError]]() for more information)>>. Returns 1 if the cursor is shown, or 0 if the cursor is hidden, <<Color2(green, or a negative error code on failure; call [[SDL_GetError]]() for more information)>>.
Line 27: Line 27:
''You can add useful comments here'' *<<BR>>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.<<BR>>*

<<Color2(green,The above has been rearranged from the original. Do these apply in 1.3?)>>
Line 30: Line 34:
 .[[SDL_CreateCursor]] *
 .[[SDL_SetCursor]] *

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

None: SDL_ShowCursor (last edited 2016-10-20 20:30:49 by PhilippWiesemann)

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