I am trying to place the mouse cursor in the middle of the screen and in window mode this isn't centered when the user right clicks to go into a mouse move mode to rotate the view....
If you want to put the cursor in the middle of the screen (desktop), then you can:
- get the desktop size with sf::VideoMode::getDesktopMode()
- place the cursor relatively to the desktop with sf::Mouse::setPosition(p)
If you want to put the cursor in the middle of your window, then you can:
- get the window size with window.getSize()
- place the cursor relatively to the window with sf::Mouse::setPosition(p, window)