src/events/SDL_mouse.c
changeset 12007 ecfb6a793c30
parent 11811 5d94cb6b24d3
child 12024 3688283680b1
equal deleted inserted replaced
12006:1b7ed3438a7f 12007:ecfb6a793c30
   686 
   686 
   687 static SDL_bool
   687 static SDL_bool
   688 ShouldUseRelativeModeWarp(SDL_Mouse *mouse)
   688 ShouldUseRelativeModeWarp(SDL_Mouse *mouse)
   689 {
   689 {
   690     if (!mouse->SetRelativeMouseMode) {
   690     if (!mouse->SetRelativeMouseMode) {
       
   691         SDL_assert(mouse->WarpMouse);   /* Need this functionality for relative mode warp implementation */
   691         return SDL_TRUE;
   692         return SDL_TRUE;
   692     }
   693     }
   693 
   694 
   694     return SDL_GetHintBoolean(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, SDL_FALSE);
   695     return SDL_GetHintBoolean(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, SDL_FALSE);
   695 }
   696 }