Mercurial > sdl-ios-xcode
comparison Xcode-iPhoneOS/Demos/src/fireworks.c @ 4755:436183eb30c8
Merge with main repo (mainly for non-printable character fix)
author | dewyatt |
---|---|
date | Sun, 18 Jul 2010 13:48:23 -0400 |
parents | 06c7423f8c60 |
children | 78db79f5a4e2 |
comparison
equal
deleted
inserted
replaced
4754:2072fed2f583 | 4755:436183eb30c8 |
---|---|
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(); |