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 authored and Sam Lantinga committed 2024-05-21 13:49:35 -07:00
1 parent 888a45977d
commit 05fb91c7b4
2 files changed
+20 -2

No files matched your search

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