Changed SDL_FlashWindow() so it doesn't take a flash count, and added the hint SDL_HINT_WINDOW_FLASH_COUNT to control behavior on Windows

This commit is contained in:
Sam Lantinga 2021-07-24 12:11:27 -07:00
parent 09d1cea733
commit e1c3a25034
14 changed files with 40 additions and 22 deletions

View file

@ -1958,6 +1958,15 @@ SDLTest_CommonEvent(SDLTest_CommonState * state, SDL_Event * event, int *done)
SDL_free(text);
}
break;
case SDLK_f:
if (withControl) {
/* Ctrl-F flash the window */
SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
if (window) {
SDL_FlashWindow(window);
}
}
break;
case SDLK_g:
if (withControl) {
/* Ctrl-G toggle mouse grab */