Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SFML work with FPS like camera in OSX #46

Closed
pwnskar opened this issue May 15, 2011 · 0 comments
Closed

Make SFML work with FPS like camera in OSX #46

pwnskar opened this issue May 15, 2011 · 0 comments

Comments

@pwnskar
Copy link

pwnskar commented May 15, 2011

This is my first bug report in ages so bear with me...

The typical way of getting cursor delta positions and re-centering the cursor each frame to get FPS like input doesn't work well with SFML in OSX.

The problem appears to be that CGDisplayMoveCursorToPoint() causes the cursor to come to a complete stop for a second or two before it can move again. It's as if it loses all it's current speed and has to re-accelerate again from 0.

In a situation where you compare the cursor's current position with the one it had the previous frame and then re-center it, you can only get a couple of pixels of movement each second (1-5 pixels in either direction, depending on how violently you move the mouse).

Finding a way to position the cursor without causing it to decellerate completely seems to be the only solution.

In an attempt to not sound more confusing I'll just link to the thread I created about this in the forums: http://www.sfml-dev.org/forum/viewtopic.php?p=31550#31550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants