hint for which system cursor to use as default

Co-Authored-By: Sam Lantinga <slouken@libsdl.org>
This commit is contained in:
expikr 2024-11-25 10:54:27 +08:00 committed by Sam Lantinga
parent 3c13bae64f
commit d55e6dfc5e
10 changed files with 54 additions and 34 deletions

View file

@ -2401,6 +2401,17 @@ extern "C" {
*/
#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME "SDL_MOUSE_DOUBLE_CLICK_TIME"
/**
* A variable setting which system cursor to use as the default cursor.
* This should be an integer corresponding to the SDL_SystemCursor enum.
* The default value is zero (SDL_SYSTEM_CURSOR_DEFAULT).
*
* This hint needs to be set before SDL_Init().
*
* \since This hint is available since SDL 3.1.3.
*/
#define SDL_HINT_MOUSE_DEFAULT_SYSTEM_CURSOR "SDL_MOUSE_DEFAULT_SYSTEM_CURSOR"
/**
* A variable controlling whether warping a hidden mouse cursor will activate
* relative mouse mode.