don't discard events in TXT_GetChar (#1621)

* keep only SDL_CONTROLLERDEVICEADDED and SDL_CONTROLLERDEVICEREMOVED
This commit is contained in:
Roman Fomin 2024-03-29 09:26:58 +07:00 committed by GitHub
parent b6f7bfead8
commit ae388ef965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -586,6 +586,11 @@ signed int TXT_GetChar(void)
return 0;
}
case SDL_CONTROLLERDEVICEADDED:
case SDL_CONTROLLERDEVICEREMOVED:
SDL_PushEvent(&ev);
break;
default:
break;
}