Hello!
I am new here in the forum and a SFML-beginner and wanted to ask how to move the view-camera with the mouse (for example if you press and hold the right mouse button and move it to also move the camera)?
I tried to get the current mouse position with this code:
sf::Vector2i Mouse = sf::Mouse::getPosition(window);
But it's an integer-vector and the view.move command for example requires two float-values.
So how is it possible?
Thank you very much!
MOtega