mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Renamed SDL events for clarity
Fixes https://github.com/libsdl-org/SDL/issues/6877
This commit is contained in:
@@ -47,10 +47,10 @@ int main(int argc, char **argv)
|
||||
while (keep_going) {
|
||||
SDL_Event e;
|
||||
while (SDL_PollEvent(&e)) {
|
||||
if (e.type == SDL_QUIT) {
|
||||
if (e.type == SDL_EVENT_QUIT) {
|
||||
keep_going = SDL_FALSE;
|
||||
} else if (e.type == SDL_LOCALECHANGED) {
|
||||
SDL_Log("Saw SDL_LOCALECHANGED event!");
|
||||
} else if (e.type == SDL_EVENT_LOCALE_CHANGED) {
|
||||
SDL_Log("Saw SDL_EVENT_LOCALE_CHANGED event!");
|
||||
log_locales();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user