I’m writing a simple FPS game and I’m going to have the mouse control the camera.
I’m using SFML library for C++.
How can i set mouse position to the center of the window.
Can you help me to find multiplatform version of the setCursorPos (Windows only)
// Sorry for my bad english
You can use:
sf::Window::SetCursorPositionfor SFML 1.6sf::Mouse::SetPositionfor SFML 2.0