mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-16 16:44:06 +00:00
testmessage: quit if we get a mouse click
This commit is contained in:
@@ -358,7 +358,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
while (SDL_WaitEvent(&event)) {
|
||||
if (event.type == SDL_EVENT_QUIT || event.type == SDL_EVENT_KEY_UP) {
|
||||
if (event.type == SDL_EVENT_QUIT ||
|
||||
event.type == SDL_EVENT_KEY_UP ||
|
||||
event.type == SDL_EVENT_MOUSE_BUTTON_UP) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user