So now i want to get mouse into my games. Earlier i was just using the keyboard but now I need to learn how to get mouse input and stuff. Well as a test, i just tried to set the position of a sprite the same as the position of the mouse pointer. So, i used sf::Sprite::SetPosition() and then gave the parameters of the function the mouse x coordinate and y coordinate. The problem was, the sprite wasnt at the point of the mouse. Like when i moved the mouse the sprite moved so it was working, but at the wrong coordinates. So if my mouse pointer was at 0,0 for example, then the sprite would be wayy below to the right or something. Please help and thanks so much!