Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bpx95

Pages: [1]
1
Window / [SOLVED] Changing Cursor Position Also Stops Movement
« on: January 08, 2012, 11:11:51 pm »
I noticed that when you use Window::SetCursorPosition(), it also makes it so the mouse stops moving for a second. This makes it next to impossible to create a first person camera.

Does anyone know a workaround? I saw another solution that let you move your mouse infinitely in any direction, but you aren't able to click if your cursor is outside of the window.

EDIT: Sorry for quick self-answer, but maybe it can help someone in the future. I was able to use CGSetLocalEventsSuppressionInterval(0), which keeps it from stopping like it was. However, this function is deprecated, so I'm going to look into a replacement, and if I find a good one, I'll report it back here.

I think this line of code should be added somewhere in SFML so that it can be cross-platform.

Pages: [1]