• Advertisement
Sign in to follow this  

SDL_WarpMouse causes jerky camera

This topic is 2998 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I use SDL_WarpMouse(x,y) in a "mouselook" program for resetting the mouse to the center of the screen, movement is really jerky. Any idea what's wrong?

Share this post


Link to post
Share on other sites
Advertisement

Yea, I had to figure out how to get everything working. You have to go into where you handle SDL_MOUSEEVENT and tell it to ignore events that were generated by your SDL_WarpCursor call.. I just check to see if the mouse x and y are the same as where I just Warped the cursor to, and ignore those events.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement