Oooh! Didn't know about this. Neither SDL_GetGlobalMouseState nor SDL_MouseMotionEvent docs speak of no such thing. Anyways, it works now :P