I need to rework my classes for update my little engine but today i'm encountered in an error:
I run those "check" codes for finding the position of the mouse and :
This show the position of the mouse on desktop
sf::Vector2i mousepos = sf::Mouse::getPosition();
This show the position of the mouse on window
sf::Vector2i mousepos = sf::Mouse::getPosition(window);
But what code need I to run for know what is the position of the mouse on my 2D world ?
For example, now the funtion return that my mouse is on position (0,0) (i placed it at left-top) but in my world it's in position (213,352);
How can I find the 2D coords position of mouse with a sf::(mouse ?)::function ?
sfml2 lastest release and windows 7
ty!