src/video/directfb/SDL_DirectFB_mouse.c
changeset 5490 352473883732
parent 5488 c20436fd5627
child 5535 96594ac5fd1a
equal deleted inserted replaced
5489:e0c63a55b67d 5490:352473883732
   370 DirectFB_InitMouse(_THIS)
   370 DirectFB_InitMouse(_THIS)
   371 {
   371 {
   372     SDL_DFB_DEVICEDATA(_this);
   372     SDL_DFB_DEVICEDATA(_this);
   373 
   373 
   374     SDL_Mouse *mouse = SDL_GetMouse();
   374     SDL_Mouse *mouse = SDL_GetMouse();
   375     SDL_Cursor *cursor;
       
   376 
   375 
   377     mouse->CreateCursor = DirectFB_CreateCursor;
   376     mouse->CreateCursor = DirectFB_CreateCursor;
   378     mouse->ShowCursor = DirectFB_ShowCursor;
   377     mouse->ShowCursor = DirectFB_ShowCursor;
   379     mouse->WarpMouse = DirectFB_WarpMouse;
   378     mouse->WarpMouse = DirectFB_WarpMouse;
   380     mouse->FreeCursor = DirectFB_FreeCursor;
   379     mouse->FreeCursor = DirectFB_FreeCursor;
   381 
   380 
   382     cursor = DirectFB_CreateDefaultCursor();
   381     SDL_SetDefaultCursor(DirectFB_CreateDefaultCursor());
   383     mouse->cursors = mouse->cur_cursor = cursor;
       
   384 
   382 
   385     devdata->num_mice = 1;
   383     devdata->num_mice = 1;
   386 }
   384 }
   387 
   385 
   388 void
   386 void