TESTWM : Option and Keyboard action to ShowCursor and HideCursor

In include/SDL3/SDL_test_common.h
   Add flag hide_cursor
In src/test/SDL_test_common.c
   Handle option --hide-cursor to SDL_HideCursor
   Handle Ctrl-h toggle to SDL_HideCursor and SDL_ShowCursor
This commit is contained in:
Dragon-Baroque 2024-05-21 22:19:16 +02:00 committed by Sam Lantinga
parent 888a45977d
commit 05fb91c7b4
2 changed files with 20 additions and 2 deletions

View file

@ -127,6 +127,7 @@ typedef struct
/* Mouse info */
SDL_Rect confine;
SDL_bool hide_cursor;
} SDLTest_CommonState;