| Summary: | Request: SDL/SDL_cursor.h With SDLCursorTypes For Standard Cursors | ||
|---|---|---|---|
| Product: | SDL | Reporter: | N. de Jonge <mail> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
N. de Jonge
2013-12-09 12:15:08 UTC
Does SDL_CreateSystemCursor() not fit your needs? --ryan. Thanks Ryan, it is indeed what I was looking for. Before closing this report, would you be willing to make some simple changes to the Wiki. (If not, please let me know and I'll e-mail Sam to request an account at the Wiki to make the changes myself.) The changes are: At http://wiki.libsdl.org/SDL_CreateCursor please add, after the first sentence at the top, something along the lines of: ----- Since SDL 2.0.0 the [[SDL_CreateSystemCursor]] function is available, which provides twelve readily available system cursors to pick from. ----- At http://wiki.libsdl.org/SDL_CreateSystemCursor please add, in the "Function Parameters" section: ----- Valid ids are: SDL_SYSTEM_CURSOR_ARROW SDL_SYSTEM_CURSOR_IBEAM SDL_SYSTEM_CURSOR_WAIT SDL_SYSTEM_CURSOR_CROSSHAIR SDL_SYSTEM_CURSOR_WAITARROW SDL_SYSTEM_CURSOR_SIZENWSE SDL_SYSTEM_CURSOR_SIZENESW SDL_SYSTEM_CURSOR_SIZEWE SDL_SYSTEM_CURSOR_SIZENS SDL_SYSTEM_CURSOR_SIZEALL SDL_SYSTEM_CURSOR_NO SDL_SYSTEM_CURSOR_HAND ----- At http://wiki.libsdl.org/SDL_CreateSystemCursor please add, in the "Code Examples" section: ----- SDL_Cursor* cursor; cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND); SDL_SetCursor(cursor); ----- I've applied the changes I suggested to the SDL wiki. Closing this report. |