comparison Xcode-iPhoneOS/Demos/src/fireworks.c @ 4661:03dcb795c583

Merged changes from the main SDL codebase
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jul 2010 21:09:23 -0700
parents 06c7423f8c60
children 78db79f5a4e2
comparison
equal deleted inserted replaced
4660:b15e7017409b 4661:03dcb795c583
428 while (SDL_PollEvent(&event)) { 428 while (SDL_PollEvent(&event)) {
429 if (event.type == SDL_QUIT) { 429 if (event.type == SDL_QUIT) {
430 done = 1; 430 done = 1;
431 } 431 }
432 if (event.type == SDL_MOUSEBUTTONDOWN) { 432 if (event.type == SDL_MOUSEBUTTONDOWN) {
433 int which = event.button.which;
434 int x, y; 433 int x, y;
435 SDL_SelectMouse(which);
436 SDL_GetMouseState(&x, &y); 434 SDL_GetMouseState(&x, &y);
437 spawnEmitterParticle(x, y); 435 spawnEmitterParticle(x, y);
438 } 436 }
439 } 437 }
440 stepParticles(); 438 stepParticles();