src/events/SDL_mouse.c
changeset 3585 f8816ffa210b
parent 3572 6bb9952d5029
child 3685 64ce267332c6
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         }