comparison src/events/SDL_mouse.c @ 3585:f8816ffa210b

Initial band-aids on SDL_GetMouseState() API breakage. More work to come. Fixes Bugzilla #758.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 16 Dec 2009 19:50:51 +0000
parents 6bb9952d5029
children 64ce267332c6
comparison
equal deleted inserted replaced
3584:41d01d70659c 3585:f8816ffa210b
250 } 250 }
251 return mouse->relative_mode; 251 return mouse->relative_mode;
252 } 252 }
253 253
254 Uint8 254 Uint8
255 SDL_GetMouseState(int index, int *x, int *y) 255 SDL_GetMouseState(int *x, int *y)
256 { 256 {
257 SDL_Mouse *mouse = SDL_GetMouse(index); 257 SDL_Mouse *mouse = SDL_GetMouse(SDL_current_mouse);
258 258
259 if (!mouse) { 259 if (!mouse) {
260 if (x) { 260 if (x) {
261 *x = 0; 261 *x = 0;
262 } 262 }