comparison Xcode-iPhoneOS/Demos/src/fireworks.c @ 4490:06c7423f8c60

Updated iPhone keyboard code (which builds and runs on the iPad and iPhone simulator now) Updated iPhone demos (which build and run again)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 07 Jul 2010 18:58:51 -0700
parents 64ce267332c6
children 78db79f5a4e2
comparison
equal deleted inserted replaced
4489:2bb1bfeee9e2 4490:06c7423f8c60
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();