comparison src/events/SDL_mouse.c @ 2765:f55c87ae336b

Final merge of Google Summer of Code 2008 work... Bring SDL to iPhone and iPod Touch by Holmes Futrell, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Oct 2008 06:46:59 +0000
parents 76c2fc9696ea
children f7872b7a8732
comparison
equal deleted inserted replaced
2764:4868c0df2e83 2765:f55c87ae336b
182 182
183 for (i = 0; i < SDL_num_mice; ++i) { 183 for (i = 0; i < SDL_num_mice; ++i) {
184 SDL_DelMouse(i); 184 SDL_DelMouse(i);
185 } 185 }
186 SDL_num_mice = 0; 186 SDL_num_mice = 0;
187 SDL_current_mouse = 0; 187 SDL_current_mouse = -1;
188 188
189 if (SDL_mice) { 189 if (SDL_mice) {
190 SDL_free(SDL_mice); 190 SDL_free(SDL_mice);
191 SDL_mice = NULL; 191 SDL_mice = NULL;
192 } 192 }