src/events/SDL_mouse.c
changeset 7493 7bfda8f0bfdf
parent 7191 75360622e65f
child 7677 871d43c6968a
equal deleted inserted replaced
7492:98de3e4f1c36 7493:7bfda8f0bfdf
   359 }
   359 }
   360 
   360 
   361 void
   361 void
   362 SDL_MouseQuit(void)
   362 SDL_MouseQuit(void)
   363 {
   363 {
       
   364     SDL_Cursor *cursor, *next;
       
   365     SDL_Mouse *mouse = SDL_GetMouse();
       
   366 
       
   367     SDL_ShowCursor(1);
       
   368 
       
   369     cursor = mouse->cursors;
       
   370     while (cursor) {
       
   371         next = cursor->next;
       
   372         SDL_FreeCursor(cursor);
       
   373         cursor = next;
       
   374     }
       
   375 
       
   376     if (mouse->def_cursor && mouse->FreeCursor) {
       
   377         mouse->FreeCursor(mouse->def_cursor);
       
   378     }
       
   379 
       
   380     SDL_zerop(mouse);
   364 }
   381 }
   365 
   382 
   366 Uint32
   383 Uint32
   367 SDL_GetMouseState(int *x, int *y)
   384 SDL_GetMouseState(int *x, int *y)
   368 {
   385 {