mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-04 19:55:19 +00:00
testmessage: quit if we get a mouse click
This commit is contained in:
parent
bcaedd5781
commit
64df9cfa47
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue